Skip to content

Commit 555767f

Browse files
M-Vaittinenbroonie
authored andcommitted
regulator: bd71815: Use defined mask values
Consistently use the defines for buck control mask values. Signed-off-by: Matti Vaittinen <[email protected]> Link: https://lore.kernel.org/r/YVqpujZLZmaiqwe8@fedora Signed-off-by: Mark Brown <[email protected]>
1 parent 400c931 commit 555767f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/regulator/bd71815-regulator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ static const struct regulator_ops bd7181x_led_regulator_ops = {
461461
.min_uV = (min), \
462462
.uV_step = (step), \
463463
.vsel_reg = (vsel), \
464-
.vsel_mask = 0x3f, \
464+
.vsel_mask = BD71815_VOLT_MASK, \
465465
.enable_reg = (ereg), \
466-
.enable_mask = 0x04, \
466+
.enable_mask = BD71815_BUCK_RUN_ON, \
467467
.ramp_reg = (ereg), \
468468
.ramp_mask = BD71815_BUCK_RAMPRATE_MASK, \
469469
.ramp_delay_table = bd7181x_ramp_table, \

0 commit comments

Comments
 (0)