zephyr/subsys
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
..
bluetooth device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
canbus 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
cpp cpp: Fixed compile warning with extern array declaration 2020-06-09 14:42:16 +02:00
debug debug/coredump: add a primitive coredump mechanism 2020-08-24 20:28:24 -04:00
dfu device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
disk device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
emul device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fb device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fs device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
jwt Kconfig: cleanup subsystems 2020-08-24 10:24:30 +02:00
logging device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mgmt 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
power device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
random device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
settings Kconfig: settings 2020-08-24 10:24:30 +02:00
shell device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
stats Kconfig: cleanup subsystems 2020-08-24 10:24:30 +02:00
storage device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
testsuite testsuite: fix unittest cross-language flags 2020-08-31 11:02:35 -04:00
tracing 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
CMakeLists.txt emul: Create an emulation implementation 2020-09-01 14:30:46 -04:00
Kconfig emul: Create an emulation implementation 2020-09-01 14:30:46 -04:00