power: supply: bq25980: Implements POWER_SUPPLY_CHARGE_TYPE_BYPASS
authorRicardo Rivera-Matos <rriveram@opensource.cirrus.com>
Tue, 15 Feb 2022 00:07:57 +0000 (18:07 -0600)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 24 Feb 2022 11:09:20 +0000 (12:09 +0100)
This patch remaps the bypass operation from POWER_SUPPLY_CHARGE_TYPE_FAST
to POWER_SUPPLY_CHARGE_TYPE_BYPASS.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25980_charger.c

index 9daa6d1..9339f56 100644 (file)
@@ -764,7 +764,7 @@ static int bq25980_get_charger_property(struct power_supply *psy,
                if (!state.ce)
                        val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE;
                else if (state.bypass)
-                       val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST;
+                       val->intval = POWER_SUPPLY_CHARGE_TYPE_BYPASS;
                else if (!state.bypass)
                        val->intval = POWER_SUPPLY_CHARGE_TYPE_STANDARD;
                break;