aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorCarlo Caione <carlo@endlessm.com>2018-02-16 08:26:16 +0000
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>2018-03-09 17:21:11 +0100
commit7638eb5666eb3c216dfdef63b573933ed9740676 (patch)
treef91f9b4b13a69bbbbbf1dae1e2d9b1203592cea9 /drivers/power
parentpower: reset: gpio-poweroff: Support for timeout from device property (diff)
downloadlinux-dev-7638eb5666eb3c216dfdef63b573933ed9740676.tar.xz
linux-dev-7638eb5666eb3c216dfdef63b573933ed9740676.zip
power: supply: axp288_fuel_gauge: Do not register FG on ECS EF20EA
The ECS EF20EA laptop ships an AXP288 but it is actually using a different, separate FG chip for AC and battery monitoring. On this laptop we need to keep using the regular ACPI driver and disable the AXP288 FG to avoid reporting two batteries to userspace. Signed-off-by: Carlo Caione <carlo@endlessm.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/axp288_fuel_gauge.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c
index 4cc6e038dfdd..903891a9bcf0 100644
--- a/drivers/power/supply/axp288_fuel_gauge.c
+++ b/drivers/power/supply/axp288_fuel_gauge.c
@@ -708,6 +708,12 @@ static const struct dmi_system_id axp288_fuel_gauge_blacklist[] = {
DMI_MATCH(DMI_BOARD_VERSION, "V1.1"),
},
},
+ {
+ /* ECS EF20EA */
+ .matches = {
+ DMI_MATCH(DMI_PRODUCT_NAME, "EF20EA"),
+ },
+ },
{}
};