regulator: tps65219: Fix .bypass_val_on setting
authorAxel Lin <axel.lin@ingics.com>
Sun, 28 Aug 2022 12:01:53 +0000 (20:01 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 9 Sep 2022 21:27:13 +0000 (22:27 +0100)
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>
drivers/regulator/tps65219-regulator.c

index e202c8e13c7f2ec4184fd7b192c61a92f217fab9..b198dcc60bc78c144544ef879d64540af319950a 100644 (file)
@@ -117,7 +117,6 @@ struct tps65219_regulator_irq_data {
                .fixed_uV               = _fuv,                         \
                .bypass_reg             = _vr,                          \
                .bypass_mask            = _bpm,                         \
-               .bypass_val_on          = 1,                            \
        }                                                               \
 
 static const struct linear_range bucks_ranges[] = {