Message ID | 20230427153632.6.I332950b93da113030cd4c2f00a727b2f2c79602d@changeid |
---|---|
State | Accepted |
Commit | abddd78576c3179de070597042c531e937930dde |
Delegated to: | Patrice Chotard |
Headers | show |
Series | stm32mp: soome changes and fixes for STM32MP13 and STM32MP15 boards | expand |
On 4/27/23 15:36, Patrick Delaunay wrote: > The '_' character is discouraged in the node name, this patch adds the > new prefix of regulator subnode, with the '-' character, in STM32MP1 driver > to support the new naming rule in Linux kernel device trees. > > It is a preliminary patch before Linux device tree synchronization > for STMicroelectronics boards. > > Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> > --- > > drivers/power/pmic/stpmic1.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/power/pmic/stpmic1.c b/drivers/power/pmic/stpmic1.c > index 2c85410b1bf5..8701d4f971c9 100644 > --- a/drivers/power/pmic/stpmic1.c > +++ b/drivers/power/pmic/stpmic1.c > @@ -34,7 +34,9 @@ static const struct pmic_child_info stpmic1_children_info[] = { > { .prefix = "ldo", .driver = "stpmic1_ldo" }, > { .prefix = "buck", .driver = "stpmic1_buck" }, > { .prefix = "vref_ddr", .driver = "stpmic1_vref_ddr" }, > + { .prefix = "vref-ddr", .driver = "stpmic1_vref_ddr" }, > { .prefix = "pwr_sw", .driver = "stpmic1_pwr_sw" }, > + { .prefix = "pwr-sw", .driver = "stpmic1_pwr_sw" }, > { .prefix = "boost", .driver = "stpmic1_boost" }, > { }, > }; Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Thanks Patrice
diff --git a/drivers/power/pmic/stpmic1.c b/drivers/power/pmic/stpmic1.c index 2c85410b1bf5..8701d4f971c9 100644 --- a/drivers/power/pmic/stpmic1.c +++ b/drivers/power/pmic/stpmic1.c @@ -34,7 +34,9 @@ static const struct pmic_child_info stpmic1_children_info[] = { { .prefix = "ldo", .driver = "stpmic1_ldo" }, { .prefix = "buck", .driver = "stpmic1_buck" }, { .prefix = "vref_ddr", .driver = "stpmic1_vref_ddr" }, + { .prefix = "vref-ddr", .driver = "stpmic1_vref_ddr" }, { .prefix = "pwr_sw", .driver = "stpmic1_pwr_sw" }, + { .prefix = "pwr-sw", .driver = "stpmic1_pwr_sw" }, { .prefix = "boost", .driver = "stpmic1_boost" }, { }, };
The '_' character is discouraged in the node name, this patch adds the new prefix of regulator subnode, with the '-' character, in STM32MP1 driver to support the new naming rule in Linux kernel device trees. It is a preliminary patch before Linux device tree synchronization for STMicroelectronics boards. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> --- drivers/power/pmic/stpmic1.c | 2 ++ 1 file changed, 2 insertions(+)