drivers: led: Update Kconfig

* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers
* Move to using select I2C' instead of 'depends on'
  (see commit df81fef944 for
   more details)

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-08-09 08:08:10 -05:00 committed by Carles Cufí
commit db0a8c63fe
8 changed files with 22 additions and 8 deletions

View file

@ -3,6 +3,7 @@
config LED_GPIO
bool "GPIO LED driver"
depends on GPIO && $(dt_compat_enabled,gpio-leds)
default y
depends on GPIO && DT_HAS_GPIO_LEDS_ENABLED
help
Enable driver for GPIO LEDs.

View file

@ -3,7 +3,9 @@
menuconfig HT16K33
bool "HT16K33 LED driver"
depends on I2C
default y
depends on DT_HAS_HOLTEK_HT16K33_ENABLED
select I2C
help
Enable LED driver for HT16K33.

View file

@ -3,7 +3,9 @@
config LP3943
bool "LP3943 LED driver"
depends on I2C
default y
depends on DT_HAS_TI_LP3943_ENABLED
select I2C
help
Enable LED driver for LP3943.

View file

@ -3,7 +3,9 @@
config LP503X
bool "LP503X LED controller"
depends on I2C
default y
depends on DT_HAS_TI_LP503X_ENABLED
select I2C
help
Enable driver for the Texas Instruments LP5030 and LP5036 I2C LED
controllers. They are respectively supporting up to 10 and 12 LEDs.

View file

@ -3,7 +3,9 @@
config LP5562
bool "LP5562 LED driver"
depends on I2C
default y
depends on DT_HAS_TI_LP5562_ENABLED
select I2C
help
Enable LED driver for LP5562.

View file

@ -3,7 +3,9 @@
config PCA9633
bool "PCA9633 LED driver"
depends on I2C
default y
depends on DT_HAS_NXP_PCA9633_ENABLED
select I2C
help
Enable LED driver for PCA9633.

View file

@ -3,6 +3,7 @@
config LED_PWM
bool "PWM LED driver"
depends on PWM
default y
depends on PWM && DT_HAS_PWM_LEDS_ENABLED
help
Enable driver for PWM LEDs.

View file

@ -3,6 +3,8 @@
config TLC59108
bool "TLC59108 LED driver"
depends on I2C
default y
depends on DT_HAS_TI_TLC59108_ENABLED
select I2C
help
Enable LED driver for TLC59108.