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 <rriveram@opensource.cirrus.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
05f2281b41
commit
be5f08f066
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user