zephyr/drivers/gpio
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
..
CMakeLists.txt drivers: gpio: add shell for controlling GPIO 2018-10-18 10:15:50 -04:00
gpio_altera_nios2.c drivers: gpio: Nios-II: Fix condition on gpio_nios2_config_oput_port() 2018-02-19 20:49:20 -05:00
gpio_atmel_sam3.c drivers: gpio: deprecate GPIO_PIN_ENABLE, GPIO_PIN_DISABLE 2017-11-02 18:46:30 -04:00
gpio_cc32xx.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_cc2650.c soc: cc2650: Update DTS-derived labels with DT_ prefix 2018-11-13 10:44:42 -06:00
gpio_cmsdk_ahb.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_cmsdk_ahb.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
gpio_dw.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_dw.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
gpio_dw_registers.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
gpio_esp32.c irq: Fix irq_lock api usage 2018-08-16 19:47:41 -07:00
gpio_gecko.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_handlers.c syscalls: remove policy from handler checks 2018-05-17 23:34:03 +03:00
gpio_imx.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_intel_apl.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_mcux.c gpio: Refactor the mcux gpio driver to use dts 2018-04-20 08:54:11 -05:00
gpio_mcux_igpio.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_mcux_lpc.c ext: mcux: Reorganize imported drivers into soc family subfolders 2018-04-24 07:55:48 -05:00
gpio_mmio32.c drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
gpio_nrfx.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_pcal9535a.c gpio: log: rename level variable 2018-10-08 17:49:12 -04:00
gpio_pcal9535a.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
gpio_pulpino.c dts: pulpino: Add device tree support for GPIO controller 2018-10-04 07:48:32 -05:00
gpio_qmsi.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_qmsi_ss.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_sam.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_sam0.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_sch.c logging: Fix errors in log usage 2018-11-10 12:38:29 -05:00
gpio_sch.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
gpio_shell.c drivers: gpio: shell: rectify gpio get error msg 2018-11-08 08:25:06 -05:00
gpio_sifive.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_stm32.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
gpio_stm32.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
gpio_sx1509b.c gpio: Add a driver for SX1509B 2018-03-13 12:31:16 -05:00
gpio_utils.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
Kconfig drivers: gpio: add shell for controlling GPIO 2018-10-18 10:15:50 -04:00
Kconfig.altera_nios2 drivers: gpio: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.atmel_sam3 drivers: gpio: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.cc32xx gpio: ti cc32xx: Add device tree support for GPIO 2018-11-05 11:08:35 -06:00
Kconfig.cc2650 Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
Kconfig.cmsdk_ahb drivers: gpio: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.dw drivers: gpio: Select HAS_DTS_GPIO in various drivers 2018-09-28 11:44:03 -05:00
Kconfig.esp32 drivers: gpio: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.gecko gpio: silabs gecko: Add device tree support for GPIO 2018-10-09 22:34:56 -04:00
Kconfig.imx drivers: gpio: Select HAS_DTS_GPIO in various drivers 2018-09-28 11:44:03 -05:00
Kconfig.intel doc: fix kconfig misspellings 2018-11-02 17:58:16 -04:00
Kconfig.mcux drivers: gpio: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.mcux_igpio drivers: gpio: Select HAS_DTS_GPIO in various drivers 2018-09-28 11:44:03 -05:00
Kconfig.mcux_lpc drivers: gpio: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.mmio32 drivers: gpio: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.nrfx drivers: gpio: Add shim for nrfx GPIO and GPIOTE drivers 2018-08-17 07:29:14 -07:00
Kconfig.pcal9535a drivers: gpio: Migrate to new logging subsys 2018-10-08 17:49:12 -04:00
Kconfig.pulpino dts: pulpino: Add device tree support for GPIO controller 2018-10-04 07:48:32 -05:00
Kconfig.qmsi drivers: gpio: Select HAS_DTS_GPIO in various drivers 2018-09-28 11:44:03 -05:00
Kconfig.sam drivers: gpio: Select HAS_DTS_GPIO in various drivers 2018-09-28 11:44:03 -05:00
Kconfig.sam0 drivers: gpio: Select HAS_DTS_GPIO in various drivers 2018-09-28 11:44:03 -05:00
Kconfig.sch Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00
Kconfig.sifive gpio: sifive: Add device tree support for GPIO generation 2018-10-05 13:21:49 -05:00
Kconfig.stm32 drivers: gpio: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
Kconfig.sx1509b drivers: boards: Merge HAS_DTS_I2C_DEVICE with HAS_DTS_I2C 2018-10-01 21:15:06 -05:00