Commit 150939ce authored by Liu Xiang's avatar Liu Xiang Committed by Kleber Sacilotto de Souza

power: bq27xxx_battery: Fix bq27541 AveragePower register address

BugLink: https://bugs.launchpad.net/bugs/1878232

commit 265b6049 upstream.

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: d74534c2 ("power: bq27xxx_battery: Add support for additional bq27xxx family devices")
Signed-off-by: default avatarLiu Xiang <liu.xiang6@zte.com.cn>
Acked-by: default avatarAndrew F. Davis <afd@ti.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarIan May <ian.may@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent dacbc80b
...@@ -242,7 +242,7 @@ static u8 bq27541_regs[] = { ...@@ -242,7 +242,7 @@ static u8 bq27541_regs[] = {
INVALID_REG_ADDR, /* AE - NA */ INVALID_REG_ADDR, /* AE - NA */
0x2c, /* SOC(RSOC) */ 0x2c, /* SOC(RSOC) */
0x3c, /* DCAP */ 0x3c, /* DCAP */
0x76, /* AP */ 0x24, /* AP */
}; };
static u8 bq27545_regs[] = { static u8 bq27545_regs[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment