summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorDang Huynh <danct12@riseup.net>2023-11-03 18:42:03 +0700
committerLee Jones <lee@kernel.org>2023-12-13 11:28:35 +0000
commit75469bb0537ad2ab0fc1fb6e534a79cfc03f3b3f (patch)
tree755b02beea3d93e5a3f05878d30575dda7f909fe /drivers/leds
parentec95a68dad00c81d53ab9aa9bcbdf0a86347e0d9 (diff)
downloadlinux-stable-75469bb0537ad2ab0fc1fb6e534a79cfc03f3b3f.tar.gz
linux-stable-75469bb0537ad2ab0fc1fb6e534a79cfc03f3b3f.tar.bz2
linux-stable-75469bb0537ad2ab0fc1fb6e534a79cfc03f3b3f.zip
leds: aw2013: Select missing dependency REGMAP_I2C
The AW2013 driver uses devm_regmap_init_i2c, so REGMAP_I2C needs to be selected. Otherwise build process may fail with: ld: drivers/leds/leds-aw2013.o: in function `aw2013_probe': leds-aw2013.c:345: undefined reference to `__devm_regmap_init_i2c' Signed-off-by: Dang Huynh <danct12@riseup.net> Acked-by: Nikita Travkin <nikita@trvn.ru> Fixes: 59ea3c9faf32 ("leds: add aw2013 driver") Link: https://lore.kernel.org/r/20231103114203.1108922-1-danct12@riseup.net Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 6496ef525579..e7697a888159 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -110,6 +110,7 @@ config LEDS_AW200XX
config LEDS_AW2013
tristate "LED support for Awinic AW2013"
depends on LEDS_CLASS && I2C && OF
+ select REGMAP_I2C
help
This option enables support for the AW2013 3-channel
LED driver.