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> |
||
|---|---|---|
| .. | ||
| device_power_domains | ||
| device_runtime_api | ||
| device_wakeup_api | ||
| policy_api | ||
| power_domain | ||
| power_mgmt | ||
| power_mgmt_multicore | ||
| power_mgmt_soc | ||
| power_states_api | ||