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-usb: 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/20221028160435.26948-9-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Johan Hovold and committed by
Vinod Koul
8fe2b2b7 413db06c

+8 -8
+8 -8
drivers/phy/qualcomm/phy-qcom-qmp-usb.c
··· 2149 2149 return 0; 2150 2150 } 2151 2151 2152 + static const struct phy_ops qmp_usb_phy_ops = { 2153 + .init = qmp_usb_enable, 2154 + .exit = qmp_usb_disable, 2155 + .set_mode = qmp_usb_set_mode, 2156 + .owner = THIS_MODULE, 2157 + }; 2158 + 2152 2159 static void qmp_usb_enable_autonomous_mode(struct qmp_usb *qmp) 2153 2160 { 2154 2161 const struct qmp_phy_cfg *cfg = qmp->cfg; ··· 2373 2366 return devm_add_action_or_reset(qmp->dev, phy_clk_release_provider, np); 2374 2367 } 2375 2368 2376 - static const struct phy_ops qmp_usb_ops = { 2377 - .init = qmp_usb_enable, 2378 - .exit = qmp_usb_disable, 2379 - .set_mode = qmp_usb_set_mode, 2380 - .owner = THIS_MODULE, 2381 - }; 2382 - 2383 2369 static void __iomem *qmp_usb_iomap(struct device *dev, struct device_node *np, 2384 2370 int index, bool exclusive) 2385 2371 { ··· 2451 2451 "failed to get pipe clock\n"); 2452 2452 } 2453 2453 2454 - generic_phy = devm_phy_create(dev, np, &qmp_usb_ops); 2454 + generic_phy = devm_phy_create(dev, np, &qmp_usb_phy_ops); 2455 2455 if (IS_ERR(generic_phy)) { 2456 2456 ret = PTR_ERR(generic_phy); 2457 2457 dev_err(dev, "failed to create PHY: %d\n", ret);