Skip to content

Commit f8f0794

Browse files
dnojirismb49
authored andcommitted
power: supply: sbs-charger: Fix INHIBITED bit for Status reg
BugLink: https://bugs.launchpad.net/bugs/2028701 commit b2f2a3c upstream. 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 <dnojiri@chromium.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent 2c3b1e5 commit f8f0794

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)