zephyr/drivers/led
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: led: ht16k33: add LED driver for Holtek HT16K33 LED driver 2019-05-07 22:33:06 -04:00
ht16k33.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
Kconfig kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.ht16k33 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.lp3943 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.lp5562 kconfig: Turn pointless/confusing 'menuconfig's into 'config's 2019-11-03 12:47:30 +01:00
Kconfig.pca9633 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
led_context.h
led_handlers.c kernel: Port remaining syscalls to new API 2019-09-12 11:31:50 +08:00
lp3943.c drivers: led: Convert to new DT_INST macros 2020-03-26 03:32:26 -05:00
lp5562.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
pca9633.c drivers: led: Convert to new DT_INST macros 2020-03-26 03:32:26 -05:00