[PATCH] power: bq27xxx_battery: Fix bq27541 AveragePower register address
From: <hidden>
Date: 2016-01-05 07:19:47
From 7dfdad8597e0cbb5324455af0acd7cfa23d23376 Mon Sep 17 00:00:00 2001
From: Liu Xiang <redacted>
Date: Tue, 15 Dec 2015 10:00:03 +0800
Subject: [PATCH] power: bq27xxx_battery: Fix bq27541 AveragePower register
address
The average power register address 0x76 in bq27541 results in an error:
bq27xxx-battery 2-0055: error reading average power register 10:
-11
According to the bq27541 datasheet, AveragePower register address is 0x24.
Signed-off-by: Liu Xiang <redacted>
Reviewed-by: Lu ZhongJun <redacted>
---
drivers/power/bq27xxx_battery.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/power/bq27xxx_battery.c b/drivers/power/bq27xxx_battery.c index 880233c..633f96d 100644
--- a/drivers/power/bq27xxx_battery.c
+++ b/drivers/power/bq27xxx_battery.c@@ -242,7 +242,7 @@ static u8 bq27541_regs[] = { INVALID_REG_ADDR, /* AE - NA */ 0x2c, /* SOC(RSOC) */ 0x3c, /* DCAP */ - 0x76, /* AP */ + 0x24, /* AP */ }; static u8 bq27545_regs[] = { --
1.7.1 -------------------------------------------------------- ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited. If you have received this mail in error, please delete it and notify us immediately.