diff options
author | Vasiliy Kupriakov <rublag-ns@yandex.ru> | 2020-06-30 19:56:01 +0200 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-07-15 11:47:04 +0200 |
commit | 9a33e375d98ece5ea40c576eabd3257acb90c509 (patch) | |
tree | 9d898a7554f658a264c14497585459c48b011a9c | |
parent | platform/x86: ISST: Add new PCI device ids (diff) | |
download | linux-9a33e375d98ece5ea40c576eabd3257acb90c509.tar.xz linux-9a33e375d98ece5ea40c576eabd3257acb90c509.zip |
platform/x86: asus-wmi: allow BAT1 battery name
The battery on my laptop ASUS TUF Gaming FX706II is named BAT1.
This patch allows battery extension to load.
Signed-off-by: Vasiliy Kupriakov <rublag-ns@yandex.ru>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r-- | drivers/platform/x86/asus-wmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 877aade19497..8f4acdc06b13 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c @@ -441,6 +441,7 @@ static int asus_wmi_battery_add(struct power_supply *battery) * battery is named BATT. */ if (strcmp(battery->desc->name, "BAT0") != 0 && + strcmp(battery->desc->name, "BAT1") != 0 && strcmp(battery->desc->name, "BATT") != 0) return -ENODEV; |