zephyr/samples/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
..
can 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
current_sensing 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
display 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
flash_shell device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
gpio/boards samples: gpio: add board overlay for up_squared 2020-02-05 12:00:36 +01:00
ht16k33 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_fujitsu_fram device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2s/litex device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
jesd216 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
kscan_touch device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
lcd_hd44780 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led_apa102 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led_apa102c_bitbang device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led_lp503x device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led_lp3943 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led_lp5562 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led_lpd8806 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led_pca9633 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
led_ws2812 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
peci 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
soc_flash_nrf device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_flash device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_flash_at45 device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_fujitsu_fram 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
drivers.rst samples: drivers: Change drivers.rst to find all samples readme file 2020-05-15 17:18:56 +02:00