power: supply: axp288_fuel_gauge: Add the Meegopad T02 to the blacklist.
authorRafael Gandolfi <rafirafi.at@gmail.com>
Mon, 6 Apr 2020 14:05:38 +0000 (16:05 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 13 Apr 2020 22:59:22 +0000 (00:59 +0200)
    The Meegopad T02 is a PC in stick format and doesn't have a battery,
    it is reported with a random and constant battery charge but as
    discharging to userspace.

    Add it to the blacklist to avoid the bogus battery status reporting.

Signed-off-by: Rafael Gandolfi <rafirafi.at@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp288_fuel_gauge.c

index f40fa0e..148eb81 100644 (file)
@@ -717,6 +717,12 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
                        DMI_MATCH(DMI_PRODUCT_NAME, "STK1A32SC"),
                },
        },
+       {
+               /* Meegopad T02 */
+               .matches = {
+                       DMI_MATCH(DMI_PRODUCT_NAME, "MEEGOPAD T02"),
+               },
+       },
        {
                /* Meegopad T08 */
                .matches = {