zephyr/tests
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
..
application_development device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
arch device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
benchmarks sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00
bluetooth device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
boards device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
crypto ztest: remove ztest_mem_domain 2020-08-26 20:35:02 -04:00
deprecated sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00
drivers device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
kernel device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
lib device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
misc/test_build sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00
net device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
portability tests: portability: cmsis_rtos_v1: Fix systick test 2020-07-09 11:21:03 +02:00
posix sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00
shell shell: fix possible deadlock in shell_fprintf 2020-08-18 10:44:35 -04:00
subsys device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
unit testsuite: fix unittest cross-language flags 2020-08-31 11:02:35 -04:00
ztest tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00