zephyr/drivers/i2c
Andrzej Głąbek 20202902f2 dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig
These changes were obtained by running a script  created by
Ulf Magnusson <Ulf.Magnusson@nordicsemi.no> for the following
specification:

1. Read the contents of all dts_fixup.h files in Zephyr
2. Check the left-hand side of the #define macros (i.e. the X in
   #define X Y)
3. Check if that name is also the name of a Kconfig option
   3.a If it is, then do nothing
   3.b If it is not, then replace CONFIG_ with DT_ or add DT_ if it
       has neither of these two prefixes
4. Replace the use of the changed #define in the code itself
   (.c, .h, .ld)

Additionally, some tweaks had to be added to this script to catch some
of the macros used in the code in a parameterized form, e.g.:
- CONFIG_GPIO_STM32_GPIO##__SUFFIX##_BASE_ADDRESS
- CONFIG_UART_##idx##_TX_PIN
- I2C_SBCON_##_num##_BASE_ADDR
and to prevent adding DT_ prefix to the following symbols:
- FLASH_START
- FLASH_SIZE
- SRAM_START
- SRAM_SIZE
- _ROM_ADDR
- _ROM_SIZE
- _RAM_ADDR
- _RAM_SIZE
which are surprisingly also defined in some dts_fixup.h files.

Finally, some manual corrections had to be done as well:
- name##_IRQ -> DT_##name##_IRQ in uart_stm32.c

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-11-13 10:44:42 -06:00
..
slave logging: Fix errors in log usage 2018-11-10 12:38:29 -05:00
CMakeLists.txt drivers: Introduce Silabs i2c shim driver 2018-10-31 09:00:38 -05:00
i2c_atmel_sam3.c logging: Fix errors in log usage 2018-11-10 12:38:29 -05:00
i2c_bitbang.c i2c: fix include for i2c_bitbang in some drivers 2017-10-03 14:50:14 -04:00
i2c_bitbang.h doc: Fix misspellings in header/doxygen comments 2017-10-17 19:40:29 -04:00
i2c_cc32xx.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_dw_registers.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
i2c_dw.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_dw.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
i2c_esp32.c irq: Fix irq_lock api usage 2018-08-16 19:47:41 -07:00
i2c_gecko.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_gpio.c drivers: i2c_gpio: Use quoted #include directive for i2c_bitbang 2017-11-22 18:49:17 -05:00
i2c_handlers.c i2c: Add new I2C Slave syscalls 2018-07-04 11:57:33 +02:00
i2c_imx.c drivers: i2c: enable logging for drivers loading i2c-priv.h 2018-10-10 13:26:58 -04:00
i2c_ll_stm32_v1.c drivers: Remove redundant semicolon 2018-11-07 10:34:06 -05:00
i2c_ll_stm32_v2.c drivers: Remove board.h include 2018-11-01 13:21:11 -04:00
i2c_ll_stm32.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_ll_stm32.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
i2c_mcux.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_nios2.c drivers: i2c: move to new logger 2018-10-08 17:49:12 -04:00
i2c_nrfx_twi.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_nrfx_twim.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_qmsi_ss.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_qmsi.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_sam_twi.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_sam_twihs.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c_sbcon.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
i2c-priv.h drivers: i2c: move to new logger 2018-10-08 17:49:12 -04:00
Kconfig drivers: i2c: move to new logger 2018-10-08 17:49:12 -04:00
Kconfig.dw kconfig: Hide the DesignWare I2C driver on unsupported platforms 2018-10-25 07:32:05 +01:00
Kconfig.esp32 drivers/i2c: kconfig: Clean up I2C Kconfigs a bit 2018-08-02 19:12:52 +02:00
Kconfig.gpio drivers/i2c: kconfig: Clean up I2C Kconfigs a bit 2018-08-02 19:12:52 +02:00
Kconfig.nrfx drivers: nrfx: Allow simultaneous use of SPI_0 and I2C_0 on nRF52810 2018-08-13 18:45:04 -07:00
Kconfig.qmsi drivers: i2c: Select HAS_DTS_I2C in designware and qmsi drivers 2018-09-27 05:54:54 +05:30
Kconfig.sbcon drivers/i2c: kconfig: Clean up I2C Kconfigs a bit 2018-08-02 19:12:52 +02:00
Kconfig.stm32 drivers: i2c: stm32: Kconfig: Remove redundant 'default n' properties 2018-07-25 07:19:12 -04:00