power: bq2419x: find charging current from 100mA
Yong Goo Yi [Wed, 20 Nov 2013 06:19:00 +0000 (15:19 +0900)]
It is for supporting the request of < 500mA charging current

Bug 1401531

Change-Id: Ie6ff13df175312bf3b5791ef1dbb3d5461511632
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/333260
(cherry picked from commit 86ccac8ac0a17cbc0c8d45ee60302c7db5951939)
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/336034
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

drivers/power/bq2419x-charger.c

index 1a6b724..bc51cb1 100644 (file)
@@ -241,8 +241,8 @@ static int bq2419x_init(struct bq2419x_chip *bq2419x)
        val = current_to_reg(iinlim, ARRAY_SIZE(iinlim),
                                bq2419x->in_current_limit);
 
-       /* Start from 500mA and then step to val */
-       floor = current_to_reg(iinlim, ARRAY_SIZE(iinlim), 500);
+       /* Start from 100mA and then step to val */
+       floor = current_to_reg(iinlim, ARRAY_SIZE(iinlim), 100);
        if (val < 0 || floor < 0)
                return 0;