summaryrefslogtreecommitdiff
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorVasiliy Kupriakov <rublag-ns@yandex.ru>2020-06-30 20:56:01 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-07-15 12:47:04 +0300
commit9a33e375d98ece5ea40c576eabd3257acb90c509 (patch)
tree9d898a7554f658a264c14497585459c48b011a9c /drivers/platform/x86
parente1eea3f839f41368d7cb4eb2d872d5b288677e94 (diff)
downloadlinux-9a33e375d98ece5ea40c576eabd3257acb90c509.tar.xz
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>
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/asus-wmi.c1
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;