Skip to contentSkip to conversation

leds: LP50XX should select REGMAP_I2C

PATCH New Randy Dunlap 1 participant 1 message Oct 4, 2021 LED

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: LP50XX should select REGMAP_I2C

REGMAP_I2C is not a user visible kconfig symbol so driver configs should not "depend on" it. They should depend on I2C and then select REGMAP_I2C.

If this worked, it was only because some other driver had set/enabled REGMAP_I2C.

Fixes 242b81170fb8 ("leds: lp50xx: Add the LP50XX family of the RGB LED driver")
Cc Jacek Anaszewski <[email protected]>
Cc Dan Murphy <[email protected]>
Cc Pavel Machek <[email protected]>
---
 drivers/leds/Kconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/leds/Kconfig +2 -1
@@ -370,7 +370,8 @@ config LEDS_LP3952
 
 config LEDS_LP50XX
 	tristate "LED Support for TI LP5036/30/24/18/12/09 LED driver chip"
-	depends on LEDS_CLASS && REGMAP_I2C
+	depends on LEDS_CLASS && I2C
+	select REGMAP_I2C
 	depends on LEDS_CLASS_MULTICOLOR || !LEDS_CLASS_MULTICOLOR
 	help
 	  If you say yes here you get support for the Texas Instruments