zephyr/samples/subsys
Gerard Marull-Paretas a202341958 devices: constify device pointers initialized at compile time
Many device pointers are initialized at compile and never changed. This
means that the device pointer can be constified (immutable).

Automated using:

```
perl -i -pe 's/const struct device \*(?!const)(.*)= DEVICE/const struct
device *const $1= DEVICE/g' **/*.c
```

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-22 17:08:26 +02:00
..
canbus samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
console samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
cpp samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
debug debug: gdbstub: Move to DTS for uart device 2022-08-01 09:09:45 -07:00
display devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
edac devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
fs samples: subsys: Remove label property from devicetree overlays 2022-07-19 10:30:20 +02:00
ipc samples: ipc: initialize devices at compile time 2022-08-19 11:51:26 +02:00
logging samples: do not use CONFIG_TEST_EXTRA_STACK_SIZE 2022-08-03 11:22:20 +02:00
lorawan/class_a samples: lorawan: class_a: Convert to use DEVICE_DT_GET 2022-07-06 12:41:54 -05:00
mgmt devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
modbus devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
nvs samples/nvs: Switch flash_area_offset to use STORAGE_NODE_LABEL 2022-08-02 15:18:19 +02:00
pm/device_pm samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
portability samples: remove redundant <zephyr/zephyr.h> includes 2022-06-15 09:13:11 +02:00
rtio/sensor_batch_processing devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
settings samples: subsys: esp32s2: add configuration file 2022-06-22 12:27:32 +02:00
shell devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
task_wdt samples: task_wdt: improve device usage 2022-08-22 17:08:26 +02:00
testsuite test: fix more legacy #include paths 2022-08-02 16:41:41 +01:00
tracing samples: do not use CONFIG_TEST_EXTRA_STACK_SIZE 2022-08-03 11:22:20 +02:00
usb devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
video devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
subsys.rst