aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorMarius Iacob <themariusus@gmail.com>2020-08-31 15:58:01 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-09-24 13:04:20 +0300
commit1d2dd379bd99ee4356ae4552fd1b8e43c7ca02cd (patch)
tree669a64f6b570d411080f4f65fc02d512a295f3df /drivers/platform
parentplatform/x86: asus-nb-wmi: Revert "Do not load on Asus T100TA and T200TA" (diff)
downloadlinux-dev-1d2dd379bd99ee4356ae4552fd1b8e43c7ca02cd.tar.xz
linux-dev-1d2dd379bd99ee4356ae4552fd1b8e43c7ca02cd.zip
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 <themariusus@gmail.com> 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 8f4acdc06b13..fa39ff030bd7 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -442,6 +442,7 @@ static int asus_wmi_battery_add(struct power_supply *battery)
*/
if (strcmp(battery->desc->name, "BAT0") != 0 &&
strcmp(battery->desc->name, "BAT1") != 0 &&
+ strcmp(battery->desc->name, "BATC") != 0 &&
strcmp(battery->desc->name, "BATT") != 0)
return -ENODEV;