Skip to content

Commit f72c583

Browse files
AxelLinbroonie
authored andcommitted
regulator: vqmmc-ipq4019: Trivial clean up
A few trivial clean up: * Make ipq4019_regulator_voltage_ops and vmmc_regulator const * Make ipq4019_vmmcq_regmap_config static * Use regulator_map_voltage_ascend Signed-off-by: Axel Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d47e4f9 commit f72c583

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/regulator/vqmmc-ipq4019-regulator.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ static const unsigned int ipq4019_vmmc_voltages[] = {
1818
1500000, 1800000, 2500000, 3000000,
1919
};
2020

21-
static struct regulator_ops ipq4019_regulator_voltage_ops = {
21+
static const struct regulator_ops ipq4019_regulator_voltage_ops = {
2222
.list_voltage = regulator_list_voltage_table,
23+
.map_voltage = regulator_map_voltage_ascend,
2324
.get_voltage_sel = regulator_get_voltage_sel_regmap,
2425
.set_voltage_sel = regulator_set_voltage_sel_regmap,
2526
};
2627

27-
static struct regulator_desc vmmc_regulator = {
28+
static const struct regulator_desc vmmc_regulator = {
2829
.name = "vmmcq",
2930
.ops = &ipq4019_regulator_voltage_ops,
3031
.type = REGULATOR_VOLTAGE,
@@ -35,7 +36,7 @@ static struct regulator_desc vmmc_regulator = {
3536
.vsel_mask = 0x3,
3637
};
3738

38-
const struct regmap_config ipq4019_vmmcq_regmap_config = {
39+
static const struct regmap_config ipq4019_vmmcq_regmap_config = {
3940
.reg_bits = 32,
4041
.reg_stride = 4,
4142
.val_bits = 32,

0 commit comments

Comments
 (0)