platform/x86: asus-wmi: Add BATC battery name to the list of supported
authorMarius Iacob <themariusus@gmail.com>
Mon, 31 Aug 2020 12:58:01 +0000 (15:58 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 24 Sep 2020 10:04:20 +0000 (13:04 +0300)
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>
drivers/platform/x86/asus-wmi.c

index 8f4acdc06b1347f3d651d84b5977473994a754e5..fa39ff030bd7cce4a4687261c1aaeaacdc710469 100644 (file)
@@ -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;