zephyr/drivers
Tomasz Bursztyka e18fcbba5a device: Const-ify all device driver instance pointers
Now that device_api attribute is unmodified at runtime, as well as all
the other attributes, it is possible to switch all device driver
instance to be constant.

A coccinelle rule is used for this:

@r_const_dev_1
  disable optional_qualifier
@
@@
-struct device *
+const struct device *

@r_const_dev_2
 disable optional_qualifier
@
@@
-struct device * const
+const struct device *

Fixes #27399

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2020-09-02 13:48:13 +02:00
..
adc device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
audio device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
bluetooth device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
can device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
clock_control device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
console device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
counter device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
crypto device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
dac device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
debug
display device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
dma device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eeprom device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
espi device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ethernet device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
flash device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
gpio device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
hwinfo device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2s device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ieee802154 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
interrupt_controller device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ipm device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
kscan device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led_strip device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
lora device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
net device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
neural_net device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
pcie device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
peci device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
pinmux device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ps2 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ptp_clock device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
pwm device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sensor device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
serial device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
timer device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
usb device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
video device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
watchdog device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
wifi device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
CMakeLists.txt cmake: remove _if_kconfig() functions 2020-08-01 12:35:20 +02:00
Kconfig drivers: dac: Add API for DAC peripherals 2020-04-20 17:41:48 +02:00