Skip to content

Commit b2f2a3c

Browse files
dnojirisre
authored andcommitted
power: supply: sbs-charger: Fix INHIBITED bit for Status reg
CHARGE_INHIBITED bit position of the ChargerStatus register is actually 0 not 1. This patch corrects it. Fixes: feb583e ("power: supply: add sbs-charger driver") Signed-off-by: Daisuke Nojiri <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent bc97139 commit b2f2a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/sbs-charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define SBS_CHARGER_REG_STATUS 0x13
2525
#define SBS_CHARGER_REG_ALARM_WARNING 0x16
2626

27-
#define SBS_CHARGER_STATUS_CHARGE_INHIBITED BIT(1)
27+
#define SBS_CHARGER_STATUS_CHARGE_INHIBITED BIT(0)
2828
#define SBS_CHARGER_STATUS_RES_COLD BIT(9)
2929
#define SBS_CHARGER_STATUS_RES_HOT BIT(10)
3030
#define SBS_CHARGER_STATUS_BATTERY_PRESENT BIT(14)

0 commit comments

Comments
 (0)