zephyr/kernel
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
..
include device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
atomic_c.c
cache_handlers.c syscalls: Add system call for cache flush & invalidate 2020-08-04 17:26:45 -04:00
CMakeLists.txt cmake: fix include directories to work with out-of-tree arch 2020-08-05 08:06:07 -04:00
compiler_stack_protect.c
device.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
errno.c
fatal.c debug/coredump: add a primitive coredump mechanism 2020-08-24 20:28:24 -04:00
futex.c
idle.c
init.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
Kconfig kernel: add CONFIG_ARCH_MEM_DOMAIN_SYNCHRONOUS_API 2020-08-26 20:35:02 -04:00
kheap.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mailbox.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mem_domain.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mem_slab.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mempool_sys.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mempool.c
mmu.c kernel: mmu: implement virtual mappings 2020-08-25 15:49:59 -04:00
msg_q.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
mutex.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
pipes.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
poll.c
queue.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sched.c tracing: trace k_sleep 2020-08-24 13:21:12 +02:00
sem.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
smp.c kernel: smp: avoid identifier collisions 2020-07-25 21:26:15 -04:00
stack.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
system_work_q.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
thread_abort.c kernel: don't reschedule thread abort in ISR 2020-08-18 08:36:35 +02:00
thread.c userspace: introduce default memory domain 2020-08-26 20:35:02 -04:00
timeout.c kernel/timeout: Fix coverity warning CID 211045 2020-08-16 09:29:41 -04:00
timer.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
userspace_handler.c userspace: update k_object API to support immutable objects 2020-09-02 13:48:13 +02:00
userspace.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
version.c
work_q.c kernel: Add k_delayed_work_pending to check if work has been submitted 2020-08-04 17:32:56 +02:00