a202341958
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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.cc32xx | ||
Kconfig.cmsdk_apb | ||
Kconfig.esp32 | ||
Kconfig.gecko | ||
Kconfig.it8xxx2 | ||
Kconfig.mcux | ||
Kconfig.mcux_imx | ||
Kconfig.npcx | ||
Kconfig.nrfx | ||
Kconfig.rpi_pico | ||
Kconfig.sam | ||
Kconfig.sam0 | ||
Kconfig.sifive | ||
Kconfig.stm32 | ||
Kconfig.xec | ||
wdt_cc32xx.c | ||
wdt_cmsdk_apb.c | ||
wdt_counter.c | ||
wdt_esp32.c | ||
wdt_gecko.c | ||
wdt_handlers.c | ||
wdt_ite_it8xxx2.c | ||
wdt_iwdg_stm32.c | ||
wdt_iwdg_stm32.h | ||
wdt_mchp_xec.c | ||
wdt_mcux_imx_wdog.c | ||
wdt_mcux_wdog.c | ||
wdt_mcux_wdog32.c | ||
wdt_mcux_wwdt.c | ||
wdt_npcx.c | ||
wdt_nrfx.c | ||
wdt_rpi_pico.c | ||
wdt_sam.c | ||
wdt_sam0.c | ||
wdt_sifive.c | ||
wdt_wwdg_stm32.c | ||
wdt_wwdg_stm32.h |