zephyr/include/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
bluetooth device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
clock_control drivers: clock_control: nrf: Move USB part to the USB driver 2020-08-31 12:40:47 +02:00
console 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
ieee802154 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
interrupt_controller x86: apic: use device MMIO APIs 2020-07-17 11:38:18 +02:00
led device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
modem drivers: modem: add Sierra Wireless HL7800 Modem Driver 2020-08-31 10:46:33 +02:00
pcie device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
rtc 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
timer device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
uart device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
usb drivers: usb: unify endpoint helper macros 2020-07-10 11:45:46 +02:00
adc.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
can.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
clock_control.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
counter.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
dac.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
display.h device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
dma.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eeprom.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
espi.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
flash.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
gna.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
gpio.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
hwinfo.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
i2c_emul.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2s.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ipm.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
kscan.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led_strip.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
lora.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
peci.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
pinmux.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
ps2.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
pwm.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sensor.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
uart.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
video-controls.h drivers: Add video API 2019-10-25 15:13:53 -05:00
video.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
watchdog.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00