Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20220828120153.1512508-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Axel Lin and committed by
Mark Brown
69a673c9 8478ed58

-1
-1
drivers/regulator/tps65219-regulator.c
··· 117 117 .fixed_uV = _fuv, \ 118 118 .bypass_reg = _vr, \ 119 119 .bypass_mask = _bpm, \ 120 - .bypass_val_on = 1, \ 121 120 } \ 122 121 123 122 static const struct linear_range bucks_ranges[] = {