zephyr/drivers/ieee802154
Peter Bigot 4f16b419e8 device: avoid casting away const from config_info pointer
The driver-specific config_info structure referenced from the device
structure is marked const.  Some drivers fail to preserve that
qualifier when casting the pointer to the driver-specific structure,
violating MISRA 11.8.

Changes produced by scripts/coccinelle/const_config_info.cocci.

Some changes proposed by the script are not included because they
reveal mutation of state through the const pointer, though the
code works as long as the driver-specific object is defined without
the const qualifier.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2020-05-13 18:21:52 +02:00
..
CMakeLists.txt
ieee802154_cc13xx_cc26xx.c
ieee802154_cc13xx_cc26xx.h
ieee802154_cc1200_regs.h
ieee802154_cc1200_rf.h
ieee802154_cc1200.c
ieee802154_cc1200.h
ieee802154_cc2520_regs.h
ieee802154_cc2520.c
ieee802154_cc2520.h
ieee802154_dw1000_regs.h
ieee802154_dw1000.c
ieee802154_kw41z.c
ieee802154_mcr20a_regs.h
ieee802154_mcr20a.c
ieee802154_mcr20a.h
ieee802154_nrf5.c
ieee802154_nrf5.h
ieee802154_rf2xx_iface.c
ieee802154_rf2xx_iface.h
ieee802154_rf2xx_regs.h
ieee802154_rf2xx.c
ieee802154_rf2xx.h
ieee802154_uart_pipe.c
ieee802154_uart_pipe.h
Kconfig
Kconfig.cc13xx_cc26xx
Kconfig.cc1200
Kconfig.cc2520
Kconfig.dw1000
Kconfig.kw41z
Kconfig.mcr20a
Kconfig.nrf5
Kconfig.rf2xx