Commit b0f379bd authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Lee Jones

leds: Make LEDS_TI_LMU_COMMON invisible

Currently, LEDS_LM3697 and LEDS_LM36274 depend on LEDS_TI_LMU_COMMON,
which contains the common code to support TI LMU devices.  This means
the user is asked about the common code first, followed by the
individual drivers, if their dependencies are met.

Simplify this, and reduce the number of questions by making
LEDS_TI_LMU_COMMON invisible, and letting it be selected when needed.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Link: https://lore.kernel.org/r/91f6efaa48c36320e58b6a312025ae9b39ee206b.1683644796.git.geert+renesas@glider.beSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent 91fe1bda
...@@ -818,8 +818,7 @@ config LEDS_SPI_BYTE ...@@ -818,8 +818,7 @@ config LEDS_SPI_BYTE
supported: Ubiquiti airCube ISP microcontroller based LED controller. supported: Ubiquiti airCube ISP microcontroller based LED controller.
config LEDS_TI_LMU_COMMON config LEDS_TI_LMU_COMMON
tristate "LED driver for TI LMU" tristate "LED driver for TI LMU" if COMPILE_TEST
depends on LEDS_CLASS
select REGMAP select REGMAP
help help
Say Y to enable the LED driver for TI LMU devices. Say Y to enable the LED driver for TI LMU devices.
...@@ -828,16 +827,16 @@ config LEDS_TI_LMU_COMMON ...@@ -828,16 +827,16 @@ config LEDS_TI_LMU_COMMON
config LEDS_LM3697 config LEDS_LM3697
tristate "LED driver for LM3697" tristate "LED driver for LM3697"
depends on LEDS_TI_LMU_COMMON depends on LEDS_CLASS && I2C && OF
depends on I2C && OF select LEDS_TI_LMU_COMMON
help help
Say Y to enable the LM3697 LED driver for TI LMU devices. Say Y to enable the LM3697 LED driver for TI LMU devices.
This supports the LED device LM3697. This supports the LED device LM3697.
config LEDS_LM36274 config LEDS_LM36274
tristate "LED driver for LM36274" tristate "LED driver for LM36274"
depends on LEDS_TI_LMU_COMMON depends on LEDS_CLASS && MFD_TI_LMU
depends on MFD_TI_LMU select LEDS_TI_LMU_COMMON
help help
Say Y to enable the LM36274 LED driver for TI LMU devices. Say Y to enable the LM36274 LED driver for TI LMU devices.
This supports the LED device LM36274. This supports the LED device LM36274.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment