regulator: bd71815: Use defined mask values
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Mon, 4 Oct 2021 07:14:02 +0000 (10:14 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 4 Oct 2021 14:31:36 +0000 (15:31 +0100)
Consistently use the defines for buck control mask values.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/YVqpujZLZmaiqwe8@fedora
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd71815-regulator.c

index 16edd9062ca912c9a9cb7b8f3501e75de0b29cb3..acaa6607898ea2e70fcec89d97d3d3ef56209098 100644 (file)
@@ -461,9 +461,9 @@ static const struct regulator_ops bd7181x_led_regulator_ops = {
                        .min_uV = (min),                                \
                        .uV_step = (step),                              \
                        .vsel_reg = (vsel),                             \
-                       .vsel_mask = 0x3f,                              \
+                       .vsel_mask = BD71815_VOLT_MASK,                 \
                        .enable_reg = (ereg),                           \
-                       .enable_mask = 0x04,                            \
+                       .enable_mask = BD71815_BUCK_RUN_ON,             \
                        .ramp_reg = (ereg),                             \
                        .ramp_mask = BD71815_BUCK_RAMPRATE_MASK,        \
                        .ramp_delay_table = bd7181x_ramp_table,         \