Commit ae1cdc70 authored by Johan Hovold's avatar Johan Hovold Committed by Vinod Koul

phy: qcom-qmp-combo: rename USB PHY ops

Add a "usb" infix to the USB PHY operation functions and name them
after the corresponding operations (e.g. "init" rather than "enable").
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20221114110621.4639-7-johan+linaro@kernel.orgSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 73d262f8
...@@ -2084,7 +2084,7 @@ static int qmp_combo_exit(struct phy *phy) ...@@ -2084,7 +2084,7 @@ static int qmp_combo_exit(struct phy *phy)
return 0; return 0;
} }
static int qmp_combo_enable(struct phy *phy) static int qmp_combo_usb_init(struct phy *phy)
{ {
int ret; int ret;
...@@ -2099,7 +2099,7 @@ static int qmp_combo_enable(struct phy *phy) ...@@ -2099,7 +2099,7 @@ static int qmp_combo_enable(struct phy *phy)
return ret; return ret;
} }
static int qmp_combo_disable(struct phy *phy) static int qmp_combo_usb_exit(struct phy *phy)
{ {
int ret; int ret;
...@@ -2109,7 +2109,7 @@ static int qmp_combo_disable(struct phy *phy) ...@@ -2109,7 +2109,7 @@ static int qmp_combo_disable(struct phy *phy)
return qmp_combo_exit(phy); return qmp_combo_exit(phy);
} }
static int qmp_combo_set_mode(struct phy *phy, enum phy_mode mode, int submode) static int qmp_combo_usb_set_mode(struct phy *phy, enum phy_mode mode, int submode)
{ {
struct qmp_phy *qphy = phy_get_drvdata(phy); struct qmp_phy *qphy = phy_get_drvdata(phy);
...@@ -2119,9 +2119,9 @@ static int qmp_combo_set_mode(struct phy *phy, enum phy_mode mode, int submode) ...@@ -2119,9 +2119,9 @@ static int qmp_combo_set_mode(struct phy *phy, enum phy_mode mode, int submode)
} }
static const struct phy_ops qmp_combo_usb_phy_ops = { static const struct phy_ops qmp_combo_usb_phy_ops = {
.init = qmp_combo_enable, .init = qmp_combo_usb_init,
.exit = qmp_combo_disable, .exit = qmp_combo_usb_exit,
.set_mode = qmp_combo_set_mode, .set_mode = qmp_combo_usb_set_mode,
.owner = THIS_MODULE, .owner = THIS_MODULE,
}; };
......
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