80 lines
2.7 KiB
Diff
80 lines
2.7 KiB
Diff
From 9b6bfad9070a95d19973be17177e5d9220cbbf1f Mon Sep 17 00:00:00 2001
|
|
From: Rick Wertenbroek <rick.wertenbroek@gmail.com>
|
|
Date: Thu, 7 Mar 2024 10:53:18 +0100
|
|
Subject: [PATCH] phy: rockchip: Fix typo in function names
|
|
|
|
Several functions had "rochchip" instead of "rockchip" in their name.
|
|
Replace "rochchip" by "rockchip".
|
|
|
|
Signed-off-By: Rick Wertenbroek <rick.wertenbroek@gmail.com>
|
|
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
|
|
Link: https://lore.kernel.org/r/20240307095318.3651498-1-rick.wertenbroek@gmail.com
|
|
Signed-off-by: Vinod Koul <vkoul@kernel.org>
|
|
---
|
|
drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 4 ++--
|
|
drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 12 ++++++------
|
|
2 files changed, 8 insertions(+), 8 deletions(-)
|
|
|
|
--- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
|
|
+++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
|
|
@@ -248,7 +248,7 @@ static int rockchip_combphy_exit(struct
|
|
return 0;
|
|
}
|
|
|
|
-static const struct phy_ops rochchip_combphy_ops = {
|
|
+static const struct phy_ops rockchip_combphy_ops = {
|
|
.init = rockchip_combphy_init,
|
|
.exit = rockchip_combphy_exit,
|
|
.owner = THIS_MODULE,
|
|
@@ -364,7 +364,7 @@ static int rockchip_combphy_probe(struct
|
|
return ret;
|
|
}
|
|
|
|
- priv->phy = devm_phy_create(dev, NULL, &rochchip_combphy_ops);
|
|
+ priv->phy = devm_phy_create(dev, NULL, &rockchip_combphy_ops);
|
|
if (IS_ERR(priv->phy)) {
|
|
dev_err(dev, "failed to create combphy\n");
|
|
return PTR_ERR(priv->phy);
|
|
--- a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
|
|
+++ b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
|
|
@@ -182,7 +182,7 @@ static const struct rockchip_p3phy_ops r
|
|
.phy_init = rockchip_p3phy_rk3588_init,
|
|
};
|
|
|
|
-static int rochchip_p3phy_init(struct phy *phy)
|
|
+static int rockchip_p3phy_init(struct phy *phy)
|
|
{
|
|
struct rockchip_p3phy_priv *priv = phy_get_drvdata(phy);
|
|
int ret;
|
|
@@ -205,7 +205,7 @@ static int rochchip_p3phy_init(struct ph
|
|
return ret;
|
|
}
|
|
|
|
-static int rochchip_p3phy_exit(struct phy *phy)
|
|
+static int rockchip_p3phy_exit(struct phy *phy)
|
|
{
|
|
struct rockchip_p3phy_priv *priv = phy_get_drvdata(phy);
|
|
|
|
@@ -214,9 +214,9 @@ static int rochchip_p3phy_exit(struct ph
|
|
return 0;
|
|
}
|
|
|
|
-static const struct phy_ops rochchip_p3phy_ops = {
|
|
- .init = rochchip_p3phy_init,
|
|
- .exit = rochchip_p3phy_exit,
|
|
+static const struct phy_ops rockchip_p3phy_ops = {
|
|
+ .init = rockchip_p3phy_init,
|
|
+ .exit = rockchip_p3phy_exit,
|
|
.set_mode = rockchip_p3phy_set_mode,
|
|
.owner = THIS_MODULE,
|
|
};
|
|
@@ -275,7 +275,7 @@ static int rockchip_p3phy_probe(struct p
|
|
return priv->num_lanes;
|
|
}
|
|
|
|
- priv->phy = devm_phy_create(dev, NULL, &rochchip_p3phy_ops);
|
|
+ priv->phy = devm_phy_create(dev, NULL, &rockchip_p3phy_ops);
|
|
if (IS_ERR(priv->phy)) {
|
|
dev_err(dev, "failed to create combphy\n");
|
|
return PTR_ERR(priv->phy);
|