summaryrefslogtreecommitdiff
path: root/drivers/power/supply/Kconfig
diff options
context:
space:
mode:
authorAlex Dewar <alex.dewar90@gmail.com>2020-08-09 19:54:44 +0100
committerSebastian Reichel <sre@kernel.org>2020-08-25 15:48:44 +0200
commit8fada2d4c213e7625124a24784c460cefc17c700 (patch)
treeee220379a21bdbd9d16e5f924751a59fb441f382 /drivers/power/supply/Kconfig
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff)
power: supply: Add dependency to lego-ev3-battery Kconfig options
This battery appears only to be used by a single board (DA850), so it makes sense to add this to the Kconfig file so that users don't build the module unnecessarily. It currently seems to be built for the x86 Arch Linux kernel where it's probably not doing much good. Signed-off-by: Alex Dewar <alex.dewar90@gmail.com> Acked-by: David Lechner <david@lechnology.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/Kconfig')
-rw-r--r--drivers/power/supply/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig
index faf2830aa152..9f76e2f47ac6 100644
--- a/drivers/power/supply/Kconfig
+++ b/drivers/power/supply/Kconfig
@@ -164,7 +164,7 @@ config BATTERY_DS2782
config BATTERY_LEGO_EV3
tristate "LEGO MINDSTORMS EV3 battery"
- depends on OF && IIO && GPIOLIB
+ depends on OF && IIO && GPIOLIB && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
help
Say Y here to enable support for the LEGO MINDSTORMS EV3 battery.