zephyr/drivers/i2c
Martí Bolívar 6e8775ff84 devicetree: remove DT_HAS_NODE_STATUS_OKAY
Several reviewers agreed that DT_HAS_NODE_STATUS_OKAY(...) was an
undesirable API for the following reasons:

- it's inconsistent with the rest of the DT_NODE_HAS_FOO names
- DT_NODE_HAS_FOO_BAR_BAZ(node) was agreed upon as a shorthand
  for macros which are equivalent to
  DT_NODE_HAS_FOO(node) && DT_NODE_HAS_BAR(node) &&
- DT_NODE_HAS_BAZ(node), and DT_HAS_NODE_STATUS_OKAY is an odd duck
- DT_NODE_HAS_STATUS(..., okay) was viewed as more readable anyway
- it is seen as a somewhat aesthetically challenged name

Replace all users with DT_NODE_HAS_STATUS(..., okay), which is
semantically equivalent.

This is mostly done with sed, but a few remaining cases were done by
hand, along with whitespace, docs, and comment changes. These special
cases include the Nordic SOC static assert files.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-05-13 18:24:42 +02:00
..
slave devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
CMakeLists.txt drivers: i2c: i2c_dw: Move to devicetree detection 2020-05-05 14:44:25 -05:00
i2c-priv.h drivers: rearrange for standard use of extern "C" in private headers 2019-08-13 18:00:31 +02:00
i2c_bitbang.c drivers: i2c: bitbang: add helper method for I2C bus recovery 2020-05-09 01:15:30 +02:00
i2c_bitbang.h drivers: i2c: bitbang: add helper method for I2C bus recovery 2020-05-09 01:15:30 +02:00
i2c_cc13xx_cc26xx.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
i2c_cc32xx.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
i2c_dw.c devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
i2c_dw.h global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
i2c_dw_port_x.h global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
i2c_dw_registers.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
i2c_esp32.c devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
i2c_gecko.c devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
i2c_gpio.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_handlers.c drivers: i2c: add I2C bus recovery API 2020-05-09 01:15:30 +02:00
i2c_imx.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_litex.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_ll_stm32.c devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
i2c_ll_stm32.h device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
i2c_ll_stm32_v1.c treewide: use full path to clock_control/stm32_clock_control.h header 2020-01-26 17:52:12 +01:00
i2c_ll_stm32_v2.c treewide: use full path to clock_control/stm32_clock_control.h header 2020-01-26 17:52:12 +01:00
i2c_mchp_xec.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_mcux.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_mcux_flexcomm.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_mcux_lpi2c.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_nios2.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
i2c_nrfx_twi.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
i2c_nrfx_twim.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
i2c_rv32m1_lpi2c.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_sam0.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_sam_twi.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_sam_twihs.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_sbcon.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
i2c_shell.c i2c: shell: add braces around if statement 2020-05-10 17:49:30 +02:00
i2c_sifive.c devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
Kconfig drivers: i2c: shell: add I2C bus recovery shell command 2020-05-09 01:15:30 +02: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.litex drivers: i2c: cleanup select HAS_DTS_I2C 2020-04-03 22:48:31 -04: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