power: supply: Add dependency to lego-ev3-battery Kconfig options
authorAlex Dewar <alex.dewar90@gmail.com>
Sun, 9 Aug 2020 18:54:44 +0000 (19:54 +0100)
committerSebastian Reichel <sre@kernel.org>
Tue, 25 Aug 2020 13:48:44 +0000 (15:48 +0200)
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>
drivers/power/supply/Kconfig

index faf2830aa1527070fc84718334e0e54ba94cb3d2..9f76e2f47ac6d9959da171486f479acdd76047cd 100644 (file)
@@ -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.