zephyr/drivers/pwm
Martí Bolívar 87e1743ae0 devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH
Make drivers multi-instance wherever possible using DT_INST_FOREACH.
This allows removing DT_HAS_DRV_INST in favor of making drivers just
do the right thing regardless of how many instances there are.

There are a few exceptions:

- SoC drivers which use CMake input files (like i2c_dw.c) or otherwise
  would require more time to convert than I have at the moment. For the
  sake of expediency, just inline the DT_HAS_DRV_INST expansion for
  now in these cases.

- SoC drivers which are explicitly single-instance (like the nRF SAADC
  driver). Again for the sake of expediency, drop a BUILD_ASSERT in
  those cases to make sure the assumption that all supported SoCs have
  at most one available instance is valid, failing fast otherwise.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-05-06 17:35:08 -05:00
..
CMakeLists.txt drivers: pwm: add driver for NXP Kinetis TPM module 2020-05-06 11:33:37 -05:00
Kconfig drivers: pwm: add driver for NXP Kinetis TPM module 2020-05-06 11:33:37 -05:00
Kconfig.dw
Kconfig.esp32
Kconfig.imx
Kconfig.litex
Kconfig.mcux drivers: pwm: pwm_mcux: Convert driver to new DT_INST macros 2020-04-20 11:08:46 -05:00
Kconfig.mcux_ftm
Kconfig.mcux_tpm drivers: pwm: add driver for NXP Kinetis TPM module 2020-05-06 11:33:37 -05:00
Kconfig.nrf5_sw
Kconfig.nrfx drivers: pwm: nrfx: Convert to use DTS NODELABEL for instance detection 2020-05-05 08:40:19 -05:00
Kconfig.pca9685
Kconfig.rv32m1_tpm
Kconfig.sam
Kconfig.sifive
Kconfig.stm32 drivers: pwm: stm32: remove remaining Kconfig instances 2020-05-05 10:52:51 -05:00
Kconfig.xec
pwm_dw.c
pwm_handlers.c
pwm_imx.c drivers: pwm: pwm_imx: Convert driver to new DT_INST macros 2020-04-04 09:34:00 -05:00
pwm_led_esp32.c drivers: esp32: Convert esp32 drivers to new DT_INST macros 2020-03-26 08:49:11 -05:00
pwm_litex.c drivers: Convert to use DT_INST_FOREACH 2020-03-31 19:29:22 -05:00
pwm_mchp_xec.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
pwm_mcux.c drivers: pwm: pwm_mcux: Convert driver to new DT_INST macros 2020-04-20 11:08:46 -05:00
pwm_mcux_ftm.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
pwm_mcux_tpm.c drivers: pwm: add driver for NXP Kinetis TPM module 2020-05-06 11:33:37 -05:00
pwm_nrf5_sw.c drivers: pwm: pwm_nrf5_sw: Convert to new DT_INST macros 2020-04-15 11:17:32 -05:00
pwm_nrfx.c dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY 2020-05-06 05:25:41 -05:00
pwm_pca9685.c
pwm_pca9685.h
pwm_rv32m1_tpm.c drivers: pwm: rv32m1_tpm: Use DT_INST_FOREACH 2020-04-10 14:38:04 -05:00
pwm_sam.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
pwm_shell.c
pwm_sifive.c drivers: Convert to use DT_INST_FOREACH 2020-03-31 19:29:22 -05:00
pwm_stm32.c drivers: pwm: stm32: remove remaining Kconfig instances 2020-05-05 10:52:51 -05:00
pwm_stm32.h