summaryrefslogtreecommitdiff
path: root/drivers/power/tps80031-charger.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/tps80031-charger.c')
-rw-r--r--drivers/power/tps80031-charger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/tps80031-charger.c b/drivers/power/tps80031-charger.c
index 123c4a32025a..70a365797089 100644
--- a/drivers/power/tps80031-charger.c
+++ b/drivers/power/tps80031-charger.c
@@ -269,7 +269,8 @@ static int configure_charging_parameter(struct tps80031_charger *charger)
}
/* set Pre Charge current to 400mA */
- ret = tps80031_write(charger->dev->parent, SLAVE_ID2, 0xDE, 0x3);
+ ret = tps80031_write(charger->dev->parent, SLAVE_ID2,
+ CHARGERUSB_VICHRG_PC, 0x3);
if (ret < 0) {
dev_err(charger->dev, "%s(): Failed in writing register 0x%02x\n",
__func__, 0xDD);