summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorBibek Basu <bbasu@nvidia.com>2014-03-27 15:03:57 +0530
committerLaxman Dewangan <ldewangan@nvidia.com>2014-03-27 05:53:36 -0700
commitb9961b93b5b715036c495447b2fd57317d845a9d (patch)
treee39857130076560dbc08de512ef1e7e31c7ccf3f /drivers/regulator
parentd7cac8dd9a5d3f6cb44348a9698d0a6aefa80737 (diff)
regulator: as3722: increase max current limit
Increase max ov current limit to 4A.Actual limit will come from Device tree based on the configuration of PMIC on board Bug 1488211 Change-Id: I9dac0d4c83c077684b1eed23089d986ddc2484e2 Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/387636 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/as3722-regulator.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator/as3722-regulator.c
index feecb258676f..d265d65a8934 100644
--- a/drivers/regulator/as3722-regulator.c
+++ b/drivers/regulator/as3722-regulator.c
@@ -330,7 +330,8 @@ static const struct as3722_register_mapping as3722_reg_lookup[] = {
static const int as3722_ldo_current[] = { 150000, 300000 };
-static const int as3722_sd016_current[] = { 2500000, 3000000, 3500000 };
+static const int as3722_sd016_current[] = { 2500000, 3000000, 3500000,
+ 4000000 };
static int as3722_current_to_index(int min_uA, int max_uA,
const int *curr_table, int n_currents)
@@ -560,8 +561,6 @@ static int as3722_sd016_get_current_limit(struct regulator_dev *rdev)
}
val &= mask;
val >>= ffs(mask) - 1;
- if (val == 3)
- return -EINVAL;
return as3722_sd016_current[val];
}