platform/x86: asus-wmi: Make it depend on ACPI battery API
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 15 Sep 2019 13:46:23 +0000 (16:46 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 15 Sep 2019 14:00:31 +0000 (17:00 +0300)
When driver has been switched to use ACPI battery API in the commit

  7973353e92ee ("Refactor charge threshold to use the battery hooking API")

it makes it implicitly dependent to a corresponding kernel configuration
option.

Make this dependency explicit in Kconfig.

Fixes: 7973353e92ee ("Refactor charge threshold to use the battery hooking API")
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/Kconfig

index 1b67bb578f9f73aa0d91d76ead305a17c1973a26..ae21d08c65e8d3d63b8c52c1a8e1f03675041325 100644 (file)
@@ -674,6 +674,7 @@ config EEEPC_LAPTOP
 config ASUS_WMI
        tristate "ASUS WMI Driver"
        depends on ACPI_WMI
+       depends on ACPI_BATTERY
        depends on INPUT
        depends on HWMON
        depends on BACKLIGHT_CLASS_DEVICE