]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
regulator: as3722: increase max current limit
authorBibek Basu <bbasu@nvidia.com>
Thu, 27 Mar 2014 09:33:57 +0000 (15:03 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Thu, 27 Mar 2014 12:53:36 +0000 (05:53 -0700)
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>
drivers/regulator/as3722-regulator.c

index feecb258676ff0bc9e25ba722dc2fde3dd4b958c..d265d65a893433ce41bf1574f41a4926c2b089e5 100644 (file)
@@ -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];
 }