zephyr/drivers
Peter Bigot 4f16b419e8 device: avoid casting away const from config_info pointer
The driver-specific config_info structure referenced from the device
structure is marked const.  Some drivers fail to preserve that
qualifier when casting the pointer to the driver-specific structure,
violating MISRA 11.8.

Changes produced by scripts/coccinelle/const_config_info.cocci.

Some changes proposed by the script are not included because they
reveal mutation of state through the const pointer, though the
code works as long as the driver-specific object is defined without
the const qualifier.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2020-05-13 18:21:52 +02:00
..
adc device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
audio device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
bluetooth
can
clock_control
console
counter device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
crypto
dac
debug
display device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
dma
eeprom
entropy device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
espi
ethernet device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
flash
gpio
hwinfo
i2c
i2s
ieee802154 device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
interrupt_controller
ipm
kscan
led
led_strip
lora
modem
net
neural_net device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
pcie
peci
pinmux
ps2
ptp_clock
pwm device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
sensor
serial
spi drivers: spi: driver reloading dma buffers in the main transceive loop 2020-05-13 16:22:10 +02:00
timer
usb
video
watchdog device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
wifi
CMakeLists.txt
Kconfig