pm2301-charger: Charging LED control for pm2301
authorRupesh Kumar <rupesh.kumar@stericsson.com>
Tue, 20 Nov 2012 06:21:56 +0000 (11:51 +0530)
committerLee Jones <lee.jones@linaro.org>
Thu, 7 Mar 2013 04:35:55 +0000 (12:35 +0800)
The LED Indicator feature allows indicating through a led when the
PM2301 battery charging is active. SW shall not disable this LED.

Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com>
Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
drivers/power/pm2301_charger.c

index 12aeed3..ac03f9e 100644 (file)
@@ -706,10 +706,6 @@ static int pm2xxx_charging_init(struct pm2xxx_charger *pm2)
        ret = pm2xxx_reg_write(pm2, PM2XXX_BATT_LOW_LEV_COMP_REG,
                PM2XXX_VBAT_LOW_MONITORING_ENA);
 
-       /* Disable LED */
-       ret = pm2xxx_reg_write(pm2, PM2XXX_LED_CTRL_REG,
-               PM2XXX_LED_SELECT_DIS);
-
        return ret;
 }