Commit 9a33e375 authored by Vasiliy Kupriakov's avatar Vasiliy Kupriakov Committed by Andy Shevchenko

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: default avatarVasiliy Kupriakov <rublag-ns@yandex.ru>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent e1eea3f8
...@@ -441,6 +441,7 @@ static int asus_wmi_battery_add(struct power_supply *battery) ...@@ -441,6 +441,7 @@ static int asus_wmi_battery_add(struct power_supply *battery)
* battery is named BATT. * battery is named BATT.
*/ */
if (strcmp(battery->desc->name, "BAT0") != 0 && if (strcmp(battery->desc->name, "BAT0") != 0 &&
strcmp(battery->desc->name, "BAT1") != 0 &&
strcmp(battery->desc->name, "BATT") != 0) strcmp(battery->desc->name, "BATT") != 0)
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment