power: supply: sbs-charger: Fix INHIBITED bit for Status reg
commitb2f2a3c980
upstream. CHARGE_INHIBITED bit position of the ChargerStatus register is actually 0 not 1. This patch corrects it. Fixes:feb583e37f
("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
465d919151
commit
ffcb9e617c
@ -29,7 +29,7 @@
|
|||||||
#define SBS_CHARGER_REG_STATUS 0x13
|
#define SBS_CHARGER_REG_STATUS 0x13
|
||||||
#define SBS_CHARGER_REG_ALARM_WARNING 0x16
|
#define SBS_CHARGER_REG_ALARM_WARNING 0x16
|
||||||
|
|
||||||
#define SBS_CHARGER_STATUS_CHARGE_INHIBITED BIT(1)
|
#define SBS_CHARGER_STATUS_CHARGE_INHIBITED BIT(0)
|
||||||
#define SBS_CHARGER_STATUS_RES_COLD BIT(9)
|
#define SBS_CHARGER_STATUS_RES_COLD BIT(9)
|
||||||
#define SBS_CHARGER_STATUS_RES_HOT BIT(10)
|
#define SBS_CHARGER_STATUS_RES_HOT BIT(10)
|
||||||
#define SBS_CHARGER_STATUS_BATTERY_PRESENT BIT(14)
|
#define SBS_CHARGER_STATUS_BATTERY_PRESENT BIT(14)
|
||||||
|
Reference in New Issue
Block a user