leds: lm3532: select regmap I2C API
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Mon, 10 May 2021 09:50:31 +0000 (12:50 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:39 +0000 (16:56 +0200)
[ Upstream commit 99be74f61cb0292b518f5e6d7e5c6611555c2ec7 ]

Regmap APIs should be selected, otherwise link can fail

ERROR: modpost: "__devm_regmap_init_i2c" [drivers/leds/leds-lm3532.ko] undefined!

Fixes: bc1b8492c764 ("leds: lm3532: Introduce the lm3532 LED driver")
Cc: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/leds/Kconfig

index 849d3c5f908e4d597f4cf0225d596549ccdee770..56e8198e13d10ed36d4f92b854c3d6f8d55c2ad1 100644 (file)
@@ -199,6 +199,7 @@ config LEDS_LM3530
 
 config LEDS_LM3532
        tristate "LCD Backlight driver for LM3532"
+       select REGMAP_I2C
        depends on LEDS_CLASS
        depends on I2C
        help