zephyr/samples
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
basic 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
boards device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
cpp_synchronization samples: cpp_synchronization: filter for integration 2020-07-30 08:00:03 -04:00
display device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
drivers device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
hello_world samples: hello_world: filter for integration 2020-07-30 08:00:03 -04:00
mpu 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
philosophers samples: philosophers: enable for integration testing 2020-07-30 08:00:03 -04:00
portability zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
posix samples: posix: eventfd: bugfix for regex check 2020-06-19 15:17:37 +02:00
scheduler samples: scheduler: metairq_dispatch: add label directive 2020-08-28 12:54:40 +02:00
sensor device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
shields device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
smp samples: pi: add integration support 2020-07-30 08:00:03 -04:00
subsys device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
synchronization samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
testing/integration sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00
tfm_integration sanitycheck: inclusive language 2020-08-27 07:04:07 -04:00
userspace 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
classic.rst samples: cpp_synchronization: Change sample description to rst format 2020-05-15 17:18:56 +02:00
index.rst trusted-firmware-m: Add initial plumbing for TFM 2020-05-09 16:21:51 +02:00