Commit 1d2dd379 authored by Marius Iacob's avatar Marius Iacob Committed by Andy Shevchenko

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: default avatarMarius Iacob <themariusus@gmail.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 8a333dab
...@@ -442,6 +442,7 @@ static int asus_wmi_battery_add(struct power_supply *battery) ...@@ -442,6 +442,7 @@ static int asus_wmi_battery_add(struct power_supply *battery)
*/ */
if (strcmp(battery->desc->name, "BAT0") != 0 && if (strcmp(battery->desc->name, "BAT0") != 0 &&
strcmp(battery->desc->name, "BAT1") != 0 && strcmp(battery->desc->name, "BAT1") != 0 &&
strcmp(battery->desc->name, "BATC") != 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