Skip to content

Commit 9a33e37

Browse files
rublagandy-shev
authored andcommitted
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 <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent e1eea3f commit 9a33e37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/x86/asus-wmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ static int asus_wmi_battery_add(struct power_supply *battery)
441441
* battery is named BATT.
442442
*/
443443
if (strcmp(battery->desc->name, "BAT0") != 0 &&
444+
strcmp(battery->desc->name, "BAT1") != 0 &&
444445
strcmp(battery->desc->name, "BATT") != 0)
445446
return -ENODEV;
446447

0 commit comments

Comments
 (0)