Skip to content

Commit 2742b41

Browse files
rddunlappavelmachek
authored andcommitted
Make LEDS_LP55XX_COMMON depend on I2C to fix build errors:
leds-lp55xx-common.c:(.text+0x9d): undefined reference to `i2c_smbus_read_byte_data' leds-lp55xx-common.c:(.text+0x8fc): undefined reference to `i2c_smbus_write_byte_data' These errors happened when I2C=m and LEDS_LP55XX_COMMON=y, so prevent that from being possible. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: Dan Murphy <dmurphy@ti.com> Cc: linux-leds@vger.kernel.org Cc: Milo Kim <milo.kim@ti.com> Cc: Mathias Nyman <mathias.nyman@nokia.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
1 parent 45c2818 commit 2742b41

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/leds/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ config LEDS_LP55XX_COMMON
399399
tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501"
400400
depends on LEDS_CLASS_MULTICOLOR || !LEDS_CLASS_MULTICOLOR
401401
depends on OF
402+
depends on I2C
402403
select FW_LOADER
403404
select FW_LOADER_USER_HELPER
404405
help

0 commit comments

Comments
 (0)