From: Ricardo Rivera-Matos Date: Tue, 15 Feb 2022 00:07:57 +0000 (-0600) Subject: power: supply: bq25980: Implements POWER_SUPPLY_CHARGE_TYPE_BYPASS X-Git-Tag: v6.1-rc5~1723^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be5f08f066f6530c414429335b58b42ca291c484;p=platform%2Fkernel%2Flinux-starfive.git power: supply: bq25980: Implements POWER_SUPPLY_CHARGE_TYPE_BYPASS This patch remaps the bypass operation from POWER_SUPPLY_CHARGE_TYPE_FAST to POWER_SUPPLY_CHARGE_TYPE_BYPASS. Signed-off-by: Ricardo Rivera-Matos Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/bq25980_charger.c b/drivers/power/supply/bq25980_charger.c index 9daa6d1..9339f56 100644 --- a/drivers/power/supply/bq25980_charger.c +++ b/drivers/power/supply/bq25980_charger.c @@ -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;