power: bq27xxx: fix register numbers of bq27500
authorH. Nikolaus Schaller <hns@goldelico.com>
Thu, 17 Dec 2015 10:12:54 +0000 (11:12 +0100)
committerSebastian Reichel <sre@kernel.org>
Thu, 7 Jan 2016 15:38:27 +0000 (16:38 +0100)
bug: according to data sheet some register numbers are wrong.

tested: no

Fixes: d74534c27775 ("power: bq27xxx_battery: Add support for additional bq27xxx family devices")
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/bq27xxx_battery.c

index 0b95542e286f35b55bcb54e169d2821b40b8a5ef..73b647b493ba659622c5c9ad6a6947a65b33017a 100644 (file)
@@ -155,10 +155,10 @@ static u8 bq27500_regs[] = {
        INVALID_REG_ADDR,       /* TTECP - NA   */
        0x0c,   /* NAC          */
        0x12,   /* LMD(FCC)     */
-       0x1e,   /* CYCT         */
+       0x2a,   /* CYCT         */
        INVALID_REG_ADDR,       /* AE - NA      */
-       0x20,   /* SOC(RSOC)    */
-       0x2e,   /* DCAP(ILMD)   */
+       0x2c,   /* SOC(RSOC)    */
+       0x3c,   /* DCAP(ILMD)   */
        INVALID_REG_ADDR,       /* AP - NA      */
 };