aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2020-07-28 12:26:13 +0200
committerPavel Machek <[email protected]>2020-07-28 12:26:13 +0200
commit2742b4192a279c6ec72e55d5474c4c07756c7845 (patch)
tree8d5ed67e909786b6c300721b00a1ed062f479dde
parent45c2818f78d31d7f6732ad07baa7902f33c269d3 (diff)
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 <[email protected]> Cc: Jacek Anaszewski <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Dan Murphy <[email protected]> Cc: [email protected] Cc: Milo Kim <[email protected]> Cc: Mathias Nyman <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
-rw-r--r--drivers/leds/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index d7e4be1b7736..1c181df24eae 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -399,6 +399,7 @@ config LEDS_LP55XX_COMMON
tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501"
depends on LEDS_CLASS_MULTICOLOR || !LEDS_CLASS_MULTICOLOR
depends on OF
+ depends on I2C
select FW_LOADER
select FW_LOADER_USER_HELPER
help