Skip to content

Commit

Permalink
power: bq27xxx_battery: Fix bq27541 AveragePower register address
Browse files Browse the repository at this point in the history
Currently in bq27541 driver, the average power register address is
incorrectly set to 0x76, which would result in an error:
bq27xxx-battery 2-0055: error reading average power register  10: -11
According to the bq27541 datasheet, fix this problem by setting
the average power register address to 0x24.

Fixes: d74534c ("power: bq27xxx_battery: Add support for additional bq27xxx family devices")
Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn>
Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
  • Loading branch information
Liu Xiang authored and Sebastian Reichel committed Jan 14, 2016
1 parent 6b9140f commit 265b604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/bq27xxx_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static u8 bq27541_regs[] = {
INVALID_REG_ADDR, /* AE - NA */
0x2c, /* SOC(RSOC) */
0x3c, /* DCAP */
0x76, /* AP */
0x24, /* AP */
};

static u8 bq27545_regs[] = {
Expand Down

0 comments on commit 265b604

Please sign in to comment.