Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ricardo Rivera-Matos and committed by
Sebastian Reichel
be5f08f0 05f2281b

+1 -1
+1 -1
drivers/power/supply/bq25980_charger.c
··· 764 764 if (!state.ce) 765 765 val->intval = POWER_SUPPLY_CHARGE_TYPE_NONE; 766 766 else if (state.bypass) 767 - val->intval = POWER_SUPPLY_CHARGE_TYPE_FAST; 767 + val->intval = POWER_SUPPLY_CHARGE_TYPE_BYPASS; 768 768 else if (!state.bypass) 769 769 val->intval = POWER_SUPPLY_CHARGE_TYPE_STANDARD; 770 770 break;