Skip to contentSkip to conversation

phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto"

PATCH In review Alper Nebi Yasak 3 participants 6 messages May 14, 2021 – Jul 27, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto"

With commit 41575d8e4c33 ("dm: treewide: Rename auto_alloc_size members to be shorter") "priv_auto_alloc_size" was renamed to "priv_auto". Apply the rename to these two drivers as well.

Fixes 4547551aa019 ("phy: Add Amlogic AXG MIPI PCIe Analog PHY driver")
Fixes 7ef19503bacf ("phy: Add Amlogic AXG MIPI D-PHY driver")

---

 drivers/phy/meson-axg-mipi-dphy.c        | 2 +-
 drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/phy/meson-axg-mipi-dphy.c +1 -1
index 8b2469793ddc..cf2a1cd14c7f 100644
@@ -389,5 +389,5 @@ U_BOOT_DRIVER(meson_axg_mipi_dphy) = {
 	.of_match = meson_axg_mipi_dphy_ids,
 	.probe = meson_axg_mipi_dphy_probe,
 	.ops = &meson_axg_mipi_dphy_ops,
-	.priv_auto_alloc_size = sizeof(struct phy_meson_axg_mipi_dphy_priv),
+	.priv_auto = sizeof(struct phy_meson_axg_mipi_dphy_priv),
 };
drivers/phy/meson-axg-mipi-pcie-analog.c +1 -1
index 276e6004e5ee..7106c23d508f 100644
@@ -229,5 +229,5 @@ U_BOOT_DRIVER(meson_axg_mipi_pcie_analog) = {
 	.of_match = meson_axg_mipi_pcie_analog_ids,
 	.probe = meson_axg_mipi_pcie_analog_probe,
 	.ops = &meson_axg_mipi_pcie_analog_ops,
-	.priv_auto_alloc_size = sizeof(struct phy_meson_axg_mipi_pcie_analog_priv),
+	.priv_auto = sizeof(struct phy_meson_axg_mipi_pcie_analog_priv),
 };
Signature · 1 line
2.31.1
#1 lore raw

PATCH 2/2 phy: meson-axg-mipi: Access parent ofnode through dev_ofnode()

With commit 84a42ae36683 ("dm: core: Rename device node to indicate it is private") and commit f10643cf8a4c ("dm: core: Access device ofnode through functions") accesses to the "node" member were replaced with dev_ofnode(). Also apply that replacement here.

Fixes 4547551aa019 ("phy: Add Amlogic AXG MIPI PCIe Analog PHY driver")

---

 drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/meson-axg-mipi-pcie-analog.c +1 -1
index 7106c23d508f..236ea1ce5ca7 100644
@@ -211,7 +211,7 @@ int meson_axg_mipi_pcie_analog_probe(struct udevice *dev)
 {
 	struct phy_meson_axg_mipi_pcie_analog_priv *priv = dev_get_priv(dev);
 
-	priv->regmap = syscon_node_to_regmap(dev_get_parent(dev)->node);
+	priv->regmap = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev)));
 	if (IS_ERR(priv->regmap))
 		return PTR_ERR(priv->regmap);
 
Signature · 1 line
2.31.1
#2 lore raw

PATCH 2/2 phy: meson-axg-mipi: Access parent ofnode through dev_ofnode()

Quoted 6 lines · Alper Nebi Yasak

With commit 84a42ae36683 ("dm: core: Rename device node to indicate it is private") and commit f10643cf8a4c ("dm: core: Access device ofnode through functions") accesses to the "node" member were replaced with dev_ofnode(). Also apply that replacement here.

Quoted 7 lines
Fixes 4547551aa019 ("phy: Add Amlogic AXG MIPI PCIe Analog PHY driver")

---

 drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#3 lore raw

Re: [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode()

In reply to Alper Nebi Yasak
Quoted 18 lines · Alper Nebi Yasak

With commit 84a42ae36683 ("dm: core: Rename device node to indicate it is private") and commit f10643cf8a4c ("dm: core: Access device ofnode through functions") accesses to the "node" member were replaced with dev_ofnode(). Also apply that replacement here.

Fixes 4547551aa019 ("phy: Add Amlogic AXG MIPI PCIe Analog PHY driver")

---

 drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/meson-axg-mipi-pcie-analog.c +0 -0
index 7106c23d508f..236ea1ce5ca7 100644

drivers/phy/meson-axg-mipi-pcie-analog.c int meson_axg_mipi_pcie_analog_probe(struct udevice *dev) · line 217

Quoted 8 lines
drivers/phy/meson-axg-mipi-pcie-analog.c +1 -1
@@ -211,7 +211,7 @@ int meson_axg_mipi_pcie_analog_probe(struct udevice *dev)
 {
 	struct phy_meson_axg_mipi_pcie_analog_priv *priv = dev_get_priv(dev);
 
-	priv->regmap = syscon_node_to_regmap(dev_get_parent(dev)->node);
+	priv->regmap = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev)));
 	if (IS_ERR(priv->regmap))
 		return PTR_ERR(priv->regmap);
 

Applied to u-boot-amlogic,

Thanks,
Neil

#4 lore raw

PATCH 1/2 phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto"

In reply to Alper Nebi Yasak
Quoted 5 lines · Alper Nebi Yasak

With commit 41575d8e4c33 ("dm: treewide: Rename auto_alloc_size members to be shorter") "priv_auto_alloc_size" was renamed to "priv_auto". Apply the rename to these two drivers as well.

Quoted 8 lines
Fixes 4547551aa019 ("phy: Add Amlogic AXG MIPI PCIe Analog PHY driver")
Fixes 7ef19503bacf ("phy: Add Amlogic AXG MIPI D-PHY driver")

---

 drivers/phy/meson-axg-mipi-dphy.c        | 2 +-
 drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
#5 lore raw
In reply to Alper Nebi Yasak
Quoted 30 lines · Alper Nebi Yasak

With commit 41575d8e4c33 ("dm: treewide: Rename auto_alloc_size members to be shorter") "priv_auto_alloc_size" was renamed to "priv_auto". Apply the rename to these two drivers as well.

Fixes 4547551aa019 ("phy: Add Amlogic AXG MIPI PCIe Analog PHY driver")
Fixes 7ef19503bacf ("phy: Add Amlogic AXG MIPI D-PHY driver")

---

 drivers/phy/meson-axg-mipi-dphy.c        | 2 +-
 drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/phy/meson-axg-mipi-dphy.c +1 -1
index 8b2469793ddc..cf2a1cd14c7f 100644
@@ -389,5 +389,5 @@ U_BOOT_DRIVER(meson_axg_mipi_dphy) = {
 	.of_match = meson_axg_mipi_dphy_ids,
 	.probe = meson_axg_mipi_dphy_probe,
 	.ops = &meson_axg_mipi_dphy_ops,
-	.priv_auto_alloc_size = sizeof(struct phy_meson_axg_mipi_dphy_priv),
+	.priv_auto = sizeof(struct phy_meson_axg_mipi_dphy_priv),
 };
drivers/phy/meson-axg-mipi-pcie-analog.c +0 -0
index 276e6004e5ee..7106c23d508f 100644

drivers/phy/meson-axg-mipi-pcie-analog.c U_BOOT_DRIVER(meson_axg_mipi_pcie_analog) = { · line 233

Quoted 6 lines
drivers/phy/meson-axg-mipi-pcie-analog.c +1 -1
@@ -229,5 +229,5 @@ U_BOOT_DRIVER(meson_axg_mipi_pcie_analog) = {
 	.of_match = meson_axg_mipi_pcie_analog_ids,
 	.probe = meson_axg_mipi_pcie_analog_probe,
 	.ops = &meson_axg_mipi_pcie_analog_ops,
-	.priv_auto_alloc_size = sizeof(struct phy_meson_axg_mipi_pcie_analog_priv),
+	.priv_auto = sizeof(struct phy_meson_axg_mipi_pcie_analog_priv),
 };

Applied to u-boot-amlogic,

Thanks,
Neil