summaryrefslogtreecommitdiff
path: root/drivers/platform
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-09 22:47:27 +0300
commita6146ab8a57b6a84e3643398605ec6f897a69365 (patch)
treec84334725984e71b58b7ab588ccef9966cc9f2b7 /drivers/platform
parent54491304fc2b9532a4031e1b516812ab20545eee (diff)
downloadlinux-a6146ab8a57b6a84e3643398605ec6f897a69365.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')
-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;