summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong Goo Yi <yyi@nvidia.com>2013-11-20 15:19:00 +0900
committerHarry Hong <hhong@nvidia.com>2013-11-27 18:23:27 -0800
commit277147e3c236349b1226087cc2460626e43fba73 (patch)
tree8bda785551eaf3f40518b821a5cabdb40754de08
parent5df1d176b1f205956b5fa3a97aa2e8f79e78532f (diff)
power: bq2419x: find charging current from 100mA
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>
-rw-r--r--drivers/power/bq2419x-charger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/bq2419x-charger.c b/drivers/power/bq2419x-charger.c
index 1a6b724fd1de..bc51cb162f2d 100644
--- a/drivers/power/bq2419x-charger.c
+++ b/drivers/power/bq2419x-charger.c
@@ -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;