summaryrefslogtreecommitdiff
path: root/drivers/regulator/max5970-regulator.c
diff options
context:
space:
mode:
authorNaresh Solanki <naresh.solanki@9elements.com>2024-02-13 17:58:00 +0300
committerMark Brown <broonie@kernel.org>2024-02-13 18:38:23 +0300
commite5d40e9afd84cec01cdbbbfe62d52f89959ab3ee (patch)
treec9d291c63462865461e2a7e883e41187f2b9b0e8 /drivers/regulator/max5970-regulator.c
parent46d5baf046abeffcb3754321fbc2551027fe7de9 (diff)
downloadlinux-e5d40e9afd84cec01cdbbbfe62d52f89959ab3ee.tar.xz
regulator: max5970: Fix regulator child node name
Update regulator child node name to lower case i.e., sw0 & sw1 as descibed in max5970 dt binding. Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com> Link: https://msgid.link/r/20240213145801.2564518-1-naresh.solanki@9elements.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/max5970-regulator.c')
-rw-r--r--drivers/regulator/max5970-regulator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/max5970-regulator.c b/drivers/regulator/max5970-regulator.c
index 830a1c4cd705..8bbcd983a74a 100644
--- a/drivers/regulator/max5970-regulator.c
+++ b/drivers/regulator/max5970-regulator.c
@@ -29,8 +29,8 @@ struct max5970_regulator {
};
enum max597x_regulator_id {
- MAX597X_SW0,
- MAX597X_SW1,
+ MAX597X_sw0,
+ MAX597X_sw1,
};
static int max5970_read_adc(struct regmap *regmap, int reg, long *val)
@@ -378,8 +378,8 @@ static int max597x_dt_parse(struct device_node *np,
}
static const struct regulator_desc regulators[] = {
- MAX597X_SWITCH(SW0, MAX5970_REG_CHXEN, 0, "vss1"),
- MAX597X_SWITCH(SW1, MAX5970_REG_CHXEN, 1, "vss2"),
+ MAX597X_SWITCH(sw0, MAX5970_REG_CHXEN, 0, "vss1"),
+ MAX597X_SWITCH(sw1, MAX5970_REG_CHXEN, 1, "vss2"),
};
static int max597x_regmap_read_clear(struct regmap *map, unsigned int reg,