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
CMakeLists.txt
i2c_bitbang.c
i2c_bitbang.h
i2c_cc13xx_cc26xx.c
i2c_cc32xx.c
i2c_dw_port_x.h
i2c_dw_registers.h
i2c_dw.c
i2c_dw.h
i2c_esp32.c
i2c_gecko.c
i2c_gpio.c
i2c_handlers.c
i2c_imx.c
i2c_litex.c
i2c_ll_stm32_v1.c
i2c_ll_stm32_v2.c
i2c_ll_stm32.c
i2c_ll_stm32.h
i2c_mchp_xec.c
i2c_mcux_flexcomm.c
i2c_mcux_lpi2c.c
i2c_mcux.c
i2c_nios2.c
i2c_nrfx_twi.c
i2c_nrfx_twim.c
i2c_rv32m1_lpi2c.c
i2c_sam_twi.c
i2c_sam_twihs.c
i2c_sam0.c
i2c_sbcon.c
i2c_shell.c
i2c_sifive.c
i2c-priv.h
Kconfig
Kconfig.cc13xx_cc26xx
Kconfig.dw
Kconfig.esp32
Kconfig.gpio
Kconfig.litex
Kconfig.nrfx
Kconfig.sam0
Kconfig.sbcon
Kconfig.sifive
Kconfig.stm32
Kconfig.xec