提交 6389075e 编写于 作者: V Vince Hsu 提交者: Mark Brown

regulator: as3722: set the correct current limit

Simple fix to set the correct current limit for SD0/1/6.
Signed-off-by: NVince Hsu <vinceh@nvidia.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
Fixes: bc407334 (regulator: as3722: add regulator driver for AMS AS3722)
Cc: stable@vger.kernel.org
上级 6ce4eac1
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册