Commit 69a673c9 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: tps65219: Fix .bypass_val_on setting

The .bypass_val_on setting does not match the .bypass_mask setting, so the
.bypass_mask bit will never get set.  Fix it by removing .bypass_val_on
setting, the regulator_set_bypass_regmap and regulator_get_bypass_regmap
helpers will use rdev->desc->bypass_mask as val_on if the val_on is 0.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20220828120153.1512508-1-axel.lin@ingics.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8478ed58
...@@ -117,7 +117,6 @@ struct tps65219_regulator_irq_data { ...@@ -117,7 +117,6 @@ struct tps65219_regulator_irq_data {
.fixed_uV = _fuv, \ .fixed_uV = _fuv, \
.bypass_reg = _vr, \ .bypass_reg = _vr, \
.bypass_mask = _bpm, \ .bypass_mask = _bpm, \
.bypass_val_on = 1, \
} \ } \
static const struct linear_range bucks_ranges[] = { static const struct linear_range bucks_ranges[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment