zephyr/drivers/entropy
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 drivers: entropy_mcux_rng LPC entropy 2020-05-07 23:25:31 -05:00
entropy_cc13xx_cc26xx.c drivers: cc13xx_cc26xx: Convert drivers to new DT_INST macros 2020-03-26 05:20:19 -05:00
entropy_esp32.c drivers: esp32: Convert esp32 drivers to new DT_INST macros 2020-03-26 08:49:11 -05:00
entropy_gecko_trng.c drivers: entropy: Convert drivers to use DT for label 2020-04-02 10:26:59 +02:00
entropy_handlers.c kernel: Port remaining syscalls to new API 2019-09-12 11:31:50 +08:00
entropy_litex.c drivers: entropy: Convert drivers to use DT for label 2020-04-02 10:26:59 +02:00
entropy_mcux_rng.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
entropy_mcux_rnga.c drivers: entropy: Convert drivers to use DT for label 2020-04-02 10:26:59 +02:00
entropy_mcux_trng.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
entropy_nrf5.c drivers: entropy_nrf5: Use device name and IRQ priority from DTS 2020-04-06 09:10:43 -05:00
entropy_rv32m1_trng.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
entropy_sam.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
entropy_stm32.c device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
fake_entropy_native_posix.c drivers: entropy: Add DTS support to native-posix fake entropy driver 2020-04-02 06:42:26 -05:00
Kconfig drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.cc13xx_cc26xx drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.esp32 drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.gecko drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.litex kconfig: Turn pointless 'menuconfig's into 'config's 2020-01-24 21:30:17 -05:00
Kconfig.mcux drivers: entropy_mcux_rng LPC entropy 2020-05-07 23:25:31 -05:00
Kconfig.native_posix drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.nrf5 drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.rv32m1 drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.sam drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00
Kconfig.stm32 drivers: entropy: Remove Kconfig HAS_DTS_ENTROPY 2020-04-13 09:14:21 -05:00