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.gsm | ||
Kconfig.hl7800 | ||
Kconfig.quectel-bg9x | ||
Kconfig.simcom-sim7080 | ||
Kconfig.ublox-sara-r4 | ||
Kconfig.wncm14a2a | ||
gsm_ppp.c | ||
hl7800.c | ||
modem_cmd_handler.c | ||
modem_cmd_handler.h | ||
modem_context.c | ||
modem_context.h | ||
modem_iface_uart.h | ||
modem_iface_uart_async.c | ||
modem_iface_uart_interrupt.c | ||
modem_receiver.c | ||
modem_receiver.h | ||
modem_shell.c | ||
modem_socket.c | ||
modem_socket.h | ||
quectel-bg9x.c | ||
quectel-bg9x.h | ||
simcom-sim7080.c | ||
simcom-sim7080.h | ||
ublox-sara-r4.c | ||
wncm14a2a.c |