Skip to content

Commit 1d2dd37

Browse files
themariususandy-shev
authored andcommitted
platform/x86: asus-wmi: Add BATC battery name to the list of supported
The Intel Atom Cherry Trail platform reports a new battery name (BATC). Tested on ASUS Transformer Mini T103HAF. Signed-off-by: Marius Iacob <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 8a333da commit 1d2dd37

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
@@ -442,6 +442,7 @@ static int asus_wmi_battery_add(struct power_supply *battery)
442442
*/
443443
if (strcmp(battery->desc->name, "BAT0") != 0 &&
444444
strcmp(battery->desc->name, "BAT1") != 0 &&
445+
strcmp(battery->desc->name, "BATC") != 0 &&
445446
strcmp(battery->desc->name, "BATT") != 0)
446447
return -ENODEV;
447448

0 commit comments

Comments
 (0)