summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorVince Hsu <vinceh@nvidia.com>2013-11-28 16:10:12 +0530
committerLaxman Dewangan <ldewangan@nvidia.com>2013-11-29 00:45:31 -0800
commit3dee4d31723e7ecf44014ef4f96294b1ff3b4600 (patch)
treefb6fc4789cc7c58f1b8ee2e3041d70be5c7d39c6 /drivers/regulator
parent8a53d2ce0265b1c6584cc21dc286248c2571a62b (diff)
regulator: as3722: set the correct current limit
Change-Id: I443987c8fc7c840d16bebf3bd24783bc51bab5be Signed-off-by: Vince Hsu <vinceh@nvidia.com> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/336651
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/as3722-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator/as3722-regulator.c
index f9ea261724a6..83a42764240e 100644
--- a/drivers/regulator/as3722-regulator.c
+++ b/drivers/regulator/as3722-regulator.c
@@ -601,8 +601,8 @@ static int as3722_sd016_set_current_limit(struct regulator_dev *rdev,
default:
return -EINVAL;
}
+ ret <<= ffs(mask) - 1;
val = ret & mask;
- val <<= ffs(mask) - 1;
return as3722_update_bits(as3722, reg, mask, val);
}