diff options
author | Ricardo Rivera-Matos <[email protected]> | 2022-02-14 18:07:57 -0600 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2022-02-24 12:09:20 +0100 |
commit | be5f08f066f6530c414429335b58b42ca291c484 (patch) | |
tree | c9c201f7ae9e7325e86b3e98ff27e5a4cbbef8fa | |
parent | 05f2281b4192320a20d746df6146b3dd82f96e39 (diff) |
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 <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
-rw-r--r-- | drivers/power/supply/bq25980_charger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/bq25980_charger.c b/drivers/power/supply/bq25980_charger.c index 9daa6d14db4d..9339f5649282 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; |