regulator: as3722: set the correct current limit
Simple fix to set the correct current limit for SD0/1/6.
Signed-off-by: Vince Hsu <vinceh@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Fixes: bc407334e9
(regulator: as3722: add regulator driver for AMS AS3722)
Cc: stable@vger.kernel.org
This commit is contained in:
parent
6ce4eac1f6
commit
6389075eff
|
@ -590,8 +590,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue