leds: aw2013: Select missing dependency REGMAP_I2C
[ Upstream commit 75469bb0537ad2ab0fc1fb6e534a79cfc03f3b3f ]
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: 59ea3c9faf
("leds: add aw2013 driver")
Link: https://lore.kernel.org/r/20231103114203.1108922-1-danct12@riseup.net
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
927626a207
commit
b152868773
@@ -116,6 +116,7 @@ config LEDS_AS3645A
|
|||||||
config LEDS_AW2013
|
config LEDS_AW2013
|
||||||
tristate "LED support for Awinic AW2013"
|
tristate "LED support for Awinic AW2013"
|
||||||
depends on LEDS_CLASS && I2C && OF
|
depends on LEDS_CLASS && I2C && OF
|
||||||
|
select REGMAP_I2C
|
||||||
help
|
help
|
||||||
This option enables support for the AW2013 3-channel
|
This option enables support for the AW2013 3-channel
|
||||||
LED driver.
|
LED driver.
|
||||||
|
Reference in New Issue
Block a user