Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: qcom-qmp-pcie: rename PHY ops structure

Rename the PHY operation structure so that it has a "phy_ops" suffix and
move it next to the implementation.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20221105145939.20318-7-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Johan Hovold and committed by
Vinod Koul
63bf101a 52b99773

+8 -8
+8 -8
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
··· 2037 2037 return 0; 2038 2038 } 2039 2039 2040 + static const struct phy_ops qmp_pcie_phy_ops = { 2041 + .power_on = qmp_pcie_enable, 2042 + .power_off = qmp_pcie_disable, 2043 + .set_mode = qmp_pcie_set_mode, 2044 + .owner = THIS_MODULE, 2045 + }; 2046 + 2040 2047 static int qmp_pcie_vreg_init(struct qmp_pcie *qmp) 2041 2048 { 2042 2049 const struct qmp_phy_cfg *cfg = qmp->cfg; ··· 2167 2160 return devm_add_action_or_reset(qmp->dev, phy_clk_release_provider, np); 2168 2161 } 2169 2162 2170 - static const struct phy_ops qmp_pcie_ops = { 2171 - .power_on = qmp_pcie_enable, 2172 - .power_off = qmp_pcie_disable, 2173 - .set_mode = qmp_pcie_set_mode, 2174 - .owner = THIS_MODULE, 2175 - }; 2176 - 2177 2163 static int qmp_pcie_create(struct qmp_pcie *qmp, struct device_node *np) 2178 2164 { 2179 2165 const struct qmp_phy_cfg *cfg = qmp->cfg; ··· 2229 2229 "failed to get pipe clock\n"); 2230 2230 } 2231 2231 2232 - generic_phy = devm_phy_create(dev, np, &qmp_pcie_ops); 2232 + generic_phy = devm_phy_create(dev, np, &qmp_pcie_phy_ops); 2233 2233 if (IS_ERR(generic_phy)) { 2234 2234 ret = PTR_ERR(generic_phy); 2235 2235 dev_err(dev, "failed to create PHY: %d\n", ret);