zephyr/drivers/audio
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
..
decimation drivers: dmic: Intel PDM digital mic driver 2018-11-08 00:40:28 -05:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
intel_dmic.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
intel_dmic.h drivers: dmic: Intel PDM digital mic driver 2018-11-08 00:40:28 -05:00
Kconfig kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.intel_dmic kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.mpxxdtyy kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.tlv320dac kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
mpxxdtyy-i2s.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
mpxxdtyy.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
mpxxdtyy.h device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
tlv320dac310x.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
tlv320dac310x.h drivers: tlv320dac: use reset GPIO from DTS 2019-01-09 12:52:52 -06:00