Commit e5d40e9a authored by Naresh Solanki's avatar Naresh Solanki Committed by Mark Brown

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: default avatarNaresh Solanki <naresh.solanki@9elements.com>
Link: https://msgid.link/r/20240213145801.2564518-1-naresh.solanki@9elements.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 46d5baf0
...@@ -29,8 +29,8 @@ struct max5970_regulator { ...@@ -29,8 +29,8 @@ struct max5970_regulator {
}; };
enum max597x_regulator_id { enum max597x_regulator_id {
MAX597X_SW0, MAX597X_sw0,
MAX597X_SW1, MAX597X_sw1,
}; };
static int max5970_read_adc(struct regmap *regmap, int reg, long *val) 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, ...@@ -378,8 +378,8 @@ static int max597x_dt_parse(struct device_node *np,
} }
static const struct regulator_desc regulators[] = { static const struct regulator_desc regulators[] = {
MAX597X_SWITCH(SW0, MAX5970_REG_CHXEN, 0, "vss1"), MAX597X_SWITCH(sw0, MAX5970_REG_CHXEN, 0, "vss1"),
MAX597X_SWITCH(SW1, MAX5970_REG_CHXEN, 1, "vss2"), MAX597X_SWITCH(sw1, MAX5970_REG_CHXEN, 1, "vss2"),
}; };
static int max597x_regmap_read_clear(struct regmap *map, unsigned int reg, static int max597x_regmap_read_clear(struct regmap *map, unsigned int reg,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment