Skip to content

Commit

Permalink
regulator: as3722: set the correct current limit
Browse files Browse the repository at this point in the history
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: bc40733 (regulator: as3722: add regulator driver for AMS AS3722)
Cc: stable@vger.kernel.org
  • Loading branch information
Vince Hsu authored and Mark Brown committed Dec 2, 2013
1 parent 6ce4eac commit 6389075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/as3722-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6389075

Please sign in to comment.