zephyr/drivers/i2c
Tomasz Bursztyka e18fcbba5a device: Const-ify all device driver instance pointers
Now that device_api attribute is unmodified at runtime, as well as all
the other attributes, it is possible to switch all device driver
instance to be constant.

A coccinelle rule is used for this:

@r_const_dev_1
  disable optional_qualifier
@
@@
-struct device *
+const struct device *

@r_const_dev_2
 disable optional_qualifier
@
@@
-struct device * const
+const struct device *

Fixes #27399

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2020-09-02 13:48:13 +02:00
..
slave drivers: move eeprom_slave driver to tests directory 2020-08-13 11:49:12 +02:00
CMakeLists.txt emul: i2c: Add support for I2C emulators 2020-09-01 14:30:46 -04:00
i2c-priv.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
i2c_bitbang.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
i2c_bitbang.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
i2c_cc13xx_cc26xx.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_cc32xx.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_common.c drivers: i2c: Add a dump routine 2020-08-04 17:50:39 +02:00
i2c_dw.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_dw.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_dw_port_x.h drivers: use node IDs for DEVICE_MMIO.*_INIT 2020-08-14 13:35:02 +02:00
i2c_dw_registers.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
i2c_emul.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_esp32.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_gecko.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_gpio.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_imx.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_litex.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_ll_stm32.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_ll_stm32.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_ll_stm32_v1.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_ll_stm32_v2.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_lpc11u6x.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_lpc11u6x.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_mchp_xec.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_mcux.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_mcux_flexcomm.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_mcux_lpi2c.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_nios2.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_nrfx_twi.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_nrfx_twim.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_rv32m1_lpi2c.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_sam0.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_sam_twi.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_sam_twihs.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_sbcon.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_shell.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
i2c_sifive.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
Kconfig emul: i2c: Add support for I2C emulators 2020-09-01 14:30:46 -04:00
Kconfig.cc13xx_cc26xx kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.dw kconfig: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.esp32 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.gpio drivers: i2c: gpio: convert to using devicetree for instances 2020-05-05 10:17:23 -05:00
Kconfig.i2c_emul emul: i2c: Add support for I2C emulators 2020-09-01 14:30:46 -04:00
Kconfig.litex drivers: i2c: cleanup select HAS_DTS_I2C 2020-04-03 22:48:31 -04:00
Kconfig.lpc11u6x drivers: i2c: Add support for LPC11U6X I2C controllers 2020-07-29 20:12:24 +02:00
Kconfig.nrfx drivers: nrf: Remove no longer suitable dependencies on Kconfig options 2020-04-03 14:47:32 +02:00
Kconfig.sam0 kconfig: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.sbcon kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.sifive kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.stm32 drivers/i2c: stm32: Configure driver by compatible 2020-04-15 08:21:30 -05:00
Kconfig.xec kconfig: Turn pointless 'menuconfig's into 'config's 2020-01-24 21:30:17 -05:00