]> Git Repo - linux.git/commitdiff
phy: constify of_phandle_args in xlate
authorKrzysztof Kozlowski <[email protected]>
Sat, 17 Feb 2024 09:39:37 +0000 (10:39 +0100)
committerVinod Koul <[email protected]>
Fri, 23 Feb 2024 12:13:14 +0000 (17:43 +0530)
The xlate callbacks are supposed to translate of_phandle_args to proper
provider without modifying the of_phandle_args.  Make the argument
pointer to const for code safety and readability.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Acked-by: Florian Fainelli <[email protected]> #Broadcom
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
46 files changed:
drivers/phy/allwinner/phy-sun4i-usb.c
drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c
drivers/phy/broadcom/phy-bcm-sr-pcie.c
drivers/phy/broadcom/phy-bcm-sr-usb.c
drivers/phy/broadcom/phy-bcm63xx-usbh.c
drivers/phy/broadcom/phy-brcm-usb.c
drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c
drivers/phy/freescale/phy-fsl-lynx-28g.c
drivers/phy/hisilicon/phy-histb-combphy.c
drivers/phy/intel/phy-intel-lgm-combo.c
drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c
drivers/phy/marvell/phy-armada375-usb2.c
drivers/phy/marvell/phy-armada38x-comphy.c
drivers/phy/marvell/phy-berlin-sata.c
drivers/phy/marvell/phy-mvebu-a3700-comphy.c
drivers/phy/marvell/phy-mvebu-cp110-comphy.c
drivers/phy/mediatek/phy-mtk-mipi-csi-0-5.c
drivers/phy/mediatek/phy-mtk-tphy.c
drivers/phy/mediatek/phy-mtk-xsphy.c
drivers/phy/microchip/lan966x_serdes.c
drivers/phy/microchip/sparx5_serdes.c
drivers/phy/mscc/phy-ocelot-serdes.c
drivers/phy/phy-core.c
drivers/phy/phy-xgene.c
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
drivers/phy/ralink/phy-mt7621-pci.c
drivers/phy/renesas/phy-rcar-gen2.c
drivers/phy/renesas/phy-rcar-gen3-usb2.c
drivers/phy/renesas/r8a779f0-ether-serdes.c
drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
drivers/phy/rockchip/phy-rockchip-pcie.c
drivers/phy/samsung/phy-exynos-mipi-video.c
drivers/phy/samsung/phy-exynos5-usbdrd.c
drivers/phy/samsung/phy-samsung-usb2.c
drivers/phy/socionext/phy-uniphier-usb2.c
drivers/phy/st/phy-miphy28lp.c
drivers/phy/st/phy-spear1310-miphy.c
drivers/phy/st/phy-spear1340-miphy.c
drivers/phy/st/phy-stm32-usbphyc.c
drivers/phy/tegra/xusb.c
drivers/phy/ti/phy-am654-serdes.c
drivers/phy/ti/phy-da8xx-usb.c
drivers/phy/ti/phy-gmii-sel.c
drivers/phy/xilinx/phy-zynqmp.c
drivers/pinctrl/tegra/pinctrl-tegra-xusb.c
include/linux/phy/phy.h

index e53a9a9317bc2592475c9e5e2085dd28a4858e44..b0f19e95060107431810197bddfd16f292526129 100644 (file)
@@ -683,7 +683,7 @@ static int sun4i_usb_phy0_vbus_notify(struct notifier_block *nb,
 }
 
 static struct phy *sun4i_usb_phy_xlate(struct device *dev,
-                                       struct of_phandle_args *args)
+                                       const struct of_phandle_args *args)
 {
        struct sun4i_usb_phy_data *data = dev_get_drvdata(dev);
 
index 2712c4bd549d87a4607f7f7907ae65d74e2a159d..5468831d6ab9bb5b8ff057d6f8c6061616ff626d 100644 (file)
@@ -350,7 +350,7 @@ static int phy_g12a_usb3_pcie_exit(struct phy *phy)
 }
 
 static struct phy *phy_g12a_usb3_pcie_xlate(struct device *dev,
-                                           struct of_phandle_args *args)
+                                           const struct of_phandle_args *args)
 {
        struct phy_g12a_usb3_pcie_priv *priv = dev_get_drvdata(dev);
        unsigned int mode;
index 8a4aadf166cf9e778af011f235b971d625877215..ff9b3862bf7af42473cf80f739123e54d114787d 100644 (file)
@@ -195,7 +195,7 @@ static const struct phy_ops sr_paxc_phy_ops = {
 };
 
 static struct phy *sr_pcie_phy_xlate(struct device *dev,
-                                    struct of_phandle_args *args)
+                                    const struct of_phandle_args *args)
 {
        struct sr_pcie_phy_core *core;
        int phy_idx;
index b0bd18a5df8794fcc192a5b927ebfa3065c5fa6e..6bcfe83609c865d3c54c87252c8ef622d78b304e 100644 (file)
@@ -209,7 +209,7 @@ static const struct phy_ops sr_phy_ops = {
 };
 
 static struct phy *bcm_usb_phy_xlate(struct device *dev,
-                                    struct of_phandle_args *args)
+                                    const struct of_phandle_args *args)
 {
        struct bcm_usb_phy_cfg *phy_cfg;
        int phy_idx;
index f8183dea774b697a2cfab9fb6f04926029f0c353..647644de041bba86ded64484b751bf781345ac43 100644 (file)
@@ -366,7 +366,7 @@ static const struct phy_ops bcm63xx_usbh_phy_ops = {
 };
 
 static struct phy *bcm63xx_usbh_phy_xlate(struct device *dev,
-                                         struct of_phandle_args *args)
+                                         const struct of_phandle_args *args)
 {
        struct bcm63xx_usbh_phy *usbh = dev_get_drvdata(dev);
 
index a16f0b58eb74538e9bd7a31fe0a1723563f3abeb..ad2eec0956016d96bfe61729545901909d8c593a 100644 (file)
@@ -175,7 +175,7 @@ static const struct phy_ops brcm_usb_phy_ops = {
 };
 
 static struct phy *brcm_usb_phy_xlate(struct device *dev,
-                                     struct of_phandle_args *args)
+                                     const struct of_phandle_args *args)
 {
        struct brcm_usb_phy_data *data = dev_get_drvdata(dev);
 
index 0ae052df3765525ebc1424f81c7fc7200592b08d..38388dd04bdc1d67018c113c1ad5779c50a07196 100644 (file)
@@ -294,7 +294,7 @@ static int mixel_lvds_phy_reset(struct device *dev)
 }
 
 static struct phy *mixel_lvds_phy_xlate(struct device *dev,
-                                       struct of_phandle_args *args)
+                                       const struct of_phandle_args *args)
 {
        struct mixel_lvds_phy_priv *priv = dev_get_drvdata(dev);
        unsigned int phy_id;
index e2187767ce00ce5658109e820c173a8a2fc04d12..b86da8e9daa46549148c2501666e85ddccd1e2e7 100644 (file)
@@ -556,7 +556,7 @@ static void lynx_28g_lane_read_configuration(struct lynx_28g_lane *lane)
 }
 
 static struct phy *lynx_28g_xlate(struct device *dev,
-                                 struct of_phandle_args *args)
+                                 const struct of_phandle_args *args)
 {
        struct lynx_28g_priv *priv = dev_get_drvdata(dev);
        int idx = args->args[0];
index c44588fd5a53e44d7391ec24db6d390fed0065ca..7436dcae398184d5644dc92594f8c316fc3d44d0 100644 (file)
@@ -163,7 +163,7 @@ static const struct phy_ops histb_combphy_ops = {
 };
 
 static struct phy *histb_combphy_xlate(struct device *dev,
-                                      struct of_phandle_args *args)
+                                      const struct of_phandle_args *args)
 {
        struct histb_combphy_priv *priv = dev_get_drvdata(dev);
        struct histb_combphy_mode *mode = &priv->mode;
index d32e267c0001d8a6ea47c8da522e1c11076b193e..f8e3054a9e5977c2ce9e9dd6492857185f506fd7 100644 (file)
@@ -508,7 +508,7 @@ static const struct phy_ops intel_cbphy_ops = {
 };
 
 static struct phy *intel_cbphy_xlate(struct device *dev,
-                                    struct of_phandle_args *args)
+                                    const struct of_phandle_args *args)
 {
        struct intel_combo_phy *cbphy = dev_get_drvdata(dev);
        u32 iphy_id;
index ef93bf2cba1053be5196c83a8bb8f6def7460e1f..406a87c8b7599084cc82a5a1d43cbcea3aa3fc53 100644 (file)
@@ -358,7 +358,7 @@ static const struct phy_ops ltq_vrx200_pcie_phy_ops = {
 };
 
 static struct phy *ltq_vrx200_pcie_phy_xlate(struct device *dev,
-                                            struct of_phandle_args *args)
+                                            const struct of_phandle_args *args)
 {
        struct ltq_vrx200_pcie_phy_priv *priv = dev_get_drvdata(dev);
        unsigned int mode;
index b141e3cd8a941998ef3140def0edfba331671d0b..3731f9b25655e4f23295f1416e706107766facf6 100644 (file)
@@ -61,7 +61,7 @@ static const struct phy_ops armada375_usb_phy_ops = {
  * USB3 case it still optional and we use ENODEV.
  */
 static struct phy *armada375_usb_phy_xlate(struct device *dev,
-                                       struct of_phandle_args *args)
+                                       const struct of_phandle_args *args)
 {
        struct armada375_cluster_phy *cluster_phy = dev_get_drvdata(dev);
 
index d3259984ee8ec5a0001d8f244eaa3ac81b68f1d0..5063361b01208eb59d81a9946a1e58c4dd4615fe 100644 (file)
@@ -160,7 +160,7 @@ static const struct phy_ops a38x_comphy_ops = {
 };
 
 static struct phy *a38x_comphy_xlate(struct device *dev,
-                                    struct of_phandle_args *args)
+                                    const struct of_phandle_args *args)
 {
        struct a38x_comphy_lane *lane;
        struct phy *phy;
index f972d78372eaf5fb19cdebdb0a177a58ad7fc39e..c90e2867900c3f372a688fdde8a271348df18a6b 100644 (file)
@@ -155,7 +155,7 @@ static int phy_berlin_sata_power_off(struct phy *phy)
 }
 
 static struct phy *phy_berlin_sata_phy_xlate(struct device *dev,
-                                            struct of_phandle_args *args)
+                                            const struct of_phandle_args *args)
 {
        struct phy_berlin_priv *priv = dev_get_drvdata(dev);
        int i;
index 24c3371e2bb294402a5be470520f4835bdd49522..41162d7228c919dadc65c526657e120eff268f59 100644 (file)
@@ -1213,7 +1213,7 @@ static const struct phy_ops mvebu_a3700_comphy_ops = {
 };
 
 static struct phy *mvebu_a3700_comphy_xlate(struct device *dev,
-                                           struct of_phandle_args *args)
+                                           const struct of_phandle_args *args)
 {
        struct mvebu_a3700_comphy_lane *lane;
        unsigned int port;
index b0dd133665986e377ca164b726257d15ffb0892e..da5e8f4057490ca581109d13c7c8e736cc4b136e 100644 (file)
@@ -917,7 +917,7 @@ static const struct phy_ops mvebu_comphy_ops = {
 };
 
 static struct phy *mvebu_comphy_xlate(struct device *dev,
-                                     struct of_phandle_args *args)
+                                     const struct of_phandle_args *args)
 {
        struct mvebu_comphy_lane *lane;
        struct phy *phy;
index 972c129185f74021216b0f4c9f1a3cff685a76d5..058e1d9266309ba38766ffcf026ad0fdb8246a96 100644 (file)
@@ -165,7 +165,7 @@ static int mtk_mipi_phy_power_off(struct phy *phy)
 }
 
 static struct phy *mtk_mipi_cdphy_xlate(struct device *dev,
-                                       struct of_phandle_args *args)
+                                       const struct of_phandle_args *args)
 {
        struct mtk_mipi_cdphy_port *priv = dev_get_drvdata(dev);
 
index a4746f6cb8a187e2a1172fd5fc2dd1f7ceee7bb1..25b86bbb9cec049a069f54d17016738e72df522b 100644 (file)
@@ -1467,7 +1467,7 @@ static int mtk_phy_set_mode(struct phy *phy, enum phy_mode mode, int submode)
 }
 
 static struct phy *mtk_phy_xlate(struct device *dev,
-                                       struct of_phandle_args *args)
+                                       const struct of_phandle_args *args)
 {
        struct mtk_tphy *tphy = dev_get_drvdata(dev);
        struct mtk_phy_instance *instance = NULL;
index b222fbbd71d18642cddbb4029cb1823510087853..064fd09417275e53581c8d47d5aa942c9bad7ddf 100644 (file)
@@ -378,7 +378,7 @@ static int mtk_phy_set_mode(struct phy *phy, enum phy_mode mode, int submode)
 }
 
 static struct phy *mtk_phy_xlate(struct device *dev,
-                                struct of_phandle_args *args)
+                                const struct of_phandle_args *args)
 {
        struct mtk_xsphy *xsphy = dev_get_drvdata(dev);
        struct xsphy_instance *inst = NULL;
index c1a41b6cd29b1d8f785134627547d68e38079747..0188b0f01a8d3661d659b3bd29bff6f0c033db53 100644 (file)
@@ -516,7 +516,7 @@ static const struct phy_ops serdes_ops = {
 };
 
 static struct phy *serdes_simple_xlate(struct device *dev,
-                                      struct of_phandle_args *args)
+                                      const struct of_phandle_args *args)
 {
        struct serdes_ctrl *ctrl = dev_get_drvdata(dev);
        unsigned int port, idx, i;
index 01bd5ea620c5b7d26abb100909cfb67ce689a273..7cb85029fab399e61b3e7f973b3730e4ad3f295b 100644 (file)
@@ -2509,7 +2509,7 @@ static struct sparx5_serdes_io_resource sparx5_serdes_iomap[] =  {
 
 /* Client lookup function, uses serdes index */
 static struct phy *sparx5_serdes_xlate(struct device *dev,
-                                    struct of_phandle_args *args)
+                                    const struct of_phandle_args *args)
 {
        struct sparx5_serdes_private *priv = dev_get_drvdata(dev);
        int idx;
index d9443e865a780f11ec03105e373f2bcf9bded8aa..1cd1b5db2ad7cf4eb721a14a1f150b1f8ffe9834 100644 (file)
@@ -441,7 +441,7 @@ static const struct phy_ops serdes_ops = {
 };
 
 static struct phy *serdes_simple_xlate(struct device *dev,
-                                      struct of_phandle_args *args)
+                                      const struct of_phandle_args *args)
 {
        struct serdes_ctrl *ctrl = dev_get_drvdata(dev);
        unsigned int port, idx, i;
index d9be6a4d538387fac816d4d46c781ebd84cc29de..7f9b4de772eedfb9f28448511dccfd0a462b658a 100644 (file)
@@ -700,8 +700,8 @@ EXPORT_SYMBOL_GPL(devm_phy_put);
  * should provide a custom of_xlate function that reads the *args* and returns
  * the appropriate phy.
  */
-struct phy *of_phy_simple_xlate(struct device *dev, struct of_phandle_args
-       *args)
+struct phy *of_phy_simple_xlate(struct device *dev,
+                               const struct of_phandle_args *args)
 {
        struct phy *phy;
        struct class_dev_iter iter;
@@ -1095,7 +1095,7 @@ EXPORT_SYMBOL_GPL(devm_phy_destroy);
 struct phy_provider *__of_phy_provider_register(struct device *dev,
        struct device_node *children, struct module *owner,
        struct phy * (*of_xlate)(struct device *dev,
-                                struct of_phandle_args *args))
+                                const struct of_phandle_args *args))
 {
        struct phy_provider *phy_provider;
 
@@ -1158,7 +1158,7 @@ EXPORT_SYMBOL_GPL(__of_phy_provider_register);
 struct phy_provider *__devm_of_phy_provider_register(struct device *dev,
        struct device_node *children, struct module *owner,
        struct phy * (*of_xlate)(struct device *dev,
-                                struct of_phandle_args *args))
+                                const struct of_phandle_args *args))
 {
        struct phy_provider **ptr, *phy_provider;
 
index 1f0f908323f0e660a108622cb90ca55c7f595b32..5007dc7a357cb7b1d3df2958deead20a59ed7172 100644 (file)
@@ -1611,7 +1611,7 @@ static const struct phy_ops xgene_phy_ops = {
 };
 
 static struct phy *xgene_phy_xlate(struct device *dev,
-                                  struct of_phandle_args *args)
+                                  const struct of_phandle_args *args)
 {
        struct xgene_phy_ctx *ctx = dev_get_drvdata(dev);
 
index b6908a03da58663d197297e6be8729ea01a73b17..546d3c6bee320678f0d29615624998fa04705538 100644 (file)
@@ -3454,7 +3454,7 @@ static int qmp_combo_parse_dt(struct qmp_combo *qmp)
        return 0;
 }
 
-static struct phy *qmp_combo_phy_xlate(struct device *dev, struct of_phandle_args *args)
+static struct phy *qmp_combo_phy_xlate(struct device *dev, const struct of_phandle_args *args)
 {
        struct qmp_combo *qmp = dev_get_drvdata(dev);
 
index 2f876f158e1df6acd51d20bda470fcc783efcdf8..a591ad95347ccf69a747b337bcbf01cb8eb7dc73 100644 (file)
@@ -263,7 +263,7 @@ static const struct phy_ops mt7621_pci_phy_ops = {
 };
 
 static struct phy *mt7621_pcie_phy_of_xlate(struct device *dev,
-                                           struct of_phandle_args *args)
+                                           const struct of_phandle_args *args)
 {
        struct mt7621_pci_phy *mt7621_phy = dev_get_drvdata(dev);
 
index 507435af26567f992540e41dd38068815bd69863..c0221e7258c0321005171bdab9c57d5ae784a8d6 100644 (file)
@@ -306,7 +306,7 @@ static const struct of_device_id rcar_gen2_phy_match_table[] = {
 MODULE_DEVICE_TABLE(of, rcar_gen2_phy_match_table);
 
 static struct phy *rcar_gen2_phy_xlate(struct device *dev,
-                                      struct of_phandle_args *args)
+                                      const struct of_phandle_args *args)
 {
        struct rcar_gen2_phy_driver *drv;
        struct device_node *np = args->np;
index e53eace7c91e372e60d0fcbb6032e2e8fd510595..c8b58607b037911ce9bea99e439141dc20fbab82 100644 (file)
@@ -608,7 +608,7 @@ static const unsigned int rcar_gen3_phy_cable[] = {
 };
 
 static struct phy *rcar_gen3_phy_usb2_xlate(struct device *dev,
-                                           struct of_phandle_args *args)
+                                           const struct of_phandle_args *args)
 {
        struct rcar_gen3_chan *ch = dev_get_drvdata(dev);
 
index fc6e398fa3bfb65c5d92f9e87e98fc593bf69ae5..f1f1da4a0b1fe5091da22845522ae7623f187e16 100644 (file)
@@ -334,7 +334,7 @@ static const struct phy_ops r8a779f0_eth_serdes_ops = {
 };
 
 static struct phy *r8a779f0_eth_serdes_xlate(struct device *dev,
-                                            struct of_phandle_args *args)
+                                            const struct of_phandle_args *args)
 {
        struct r8a779f0_eth_serdes_drv_data *dd = dev_get_drvdata(dev);
 
index 5de5e2e97ffa0f17d1997d49661f3699ef5fe3c1..76b9cf417591de0b7d9f5887dc78b075bd71e6bf 100644 (file)
@@ -251,7 +251,7 @@ static const struct phy_ops rochchip_combphy_ops = {
        .owner = THIS_MODULE,
 };
 
-static struct phy *rockchip_combphy_xlate(struct device *dev, struct of_phandle_args *args)
+static struct phy *rockchip_combphy_xlate(struct device *dev, const struct of_phandle_args *args)
 {
        struct rockchip_combphy_priv *priv = dev_get_drvdata(dev);
 
index 1bbd6be2a58473db756e85631505bf81bdc29b77..51cc5ece0e63724d1ce6f9d3ece2f378a28786f0 100644 (file)
@@ -82,7 +82,7 @@ static struct rockchip_pcie_phy *to_pcie_phy(struct phy_pcie_instance *inst)
 }
 
 static struct phy *rockchip_pcie_phy_of_xlate(struct device *dev,
-                                             struct of_phandle_args *args)
+                                             const struct of_phandle_args *args)
 {
        struct rockchip_pcie_phy *rk_phy = dev_get_drvdata(dev);
 
index 592d8067e848e280bb6185542c26123059bdbd17..f6756a609a9a0774ecb6e27cf96726891683636c 100644 (file)
@@ -274,7 +274,7 @@ static int exynos_mipi_video_phy_power_off(struct phy *phy)
 }
 
 static struct phy *exynos_mipi_video_phy_xlate(struct device *dev,
-                                       struct of_phandle_args *args)
+                                       const struct of_phandle_args *args)
 {
        struct exynos_mipi_video_phy *state = dev_get_drvdata(dev);
 
index 3f310b28bfff799cbe9d687bc6c1af3cc3941159..04171eed5b16fbd930a1b3a7a65ac96a4de5c12d 100644 (file)
@@ -715,7 +715,7 @@ static int exynos5420_usbdrd_phy_calibrate(struct exynos5_usbdrd_phy *phy_drd)
 }
 
 static struct phy *exynos5_usbdrd_phy_xlate(struct device *dev,
-                                       struct of_phandle_args *args)
+                                       const struct of_phandle_args *args)
 {
        struct exynos5_usbdrd_phy *phy_drd = dev_get_drvdata(dev);
 
index 68a174eca0ba8a01ae22199c7939b7fa26f53794..9de744cd6f39286d2b84f8421a26c6600c1360a0 100644 (file)
@@ -87,7 +87,7 @@ static const struct phy_ops samsung_usb2_phy_ops = {
 };
 
 static struct phy *samsung_usb2_phy_xlate(struct device *dev,
-                                       struct of_phandle_args *args)
+                                       const struct of_phandle_args *args)
 {
        struct samsung_usb2_phy_driver *drv;
 
index 3f2086ed4fe4f9fc90b0bc221dc84ffb606906d4..21c201717d952934e1de893530f418bc92b4476b 100644 (file)
@@ -81,7 +81,7 @@ static int uniphier_u2phy_init(struct phy *phy)
 }
 
 static struct phy *uniphier_u2phy_xlate(struct device *dev,
-                                       struct of_phandle_args *args)
+                                       const struct of_phandle_args *args)
 {
        struct uniphier_u2phy_priv *priv = dev_get_drvdata(dev);
 
index e30305b77f0d168e27e069340c85d670095c7be3..063fc38788ed403894390f022fa1150b2f7c689b 100644 (file)
@@ -1074,7 +1074,7 @@ static int miphy28lp_get_addr(struct miphy28lp_phy *miphy_phy)
 }
 
 static struct phy *miphy28lp_xlate(struct device *dev,
-                                  struct of_phandle_args *args)
+                                  const struct of_phandle_args *args)
 {
        struct miphy28lp_dev *miphy_dev = dev_get_drvdata(dev);
        struct miphy28lp_phy *miphy_phy = NULL;
index 35a9831b51610cad2b0b3fe22b0c2d8aba58bf63..c661ab63505f9b1731c324296fa552dc748d7825 100644 (file)
@@ -183,7 +183,7 @@ static const struct phy_ops spear1310_miphy_ops = {
 };
 
 static struct phy *spear1310_miphy_xlate(struct device *dev,
-                                        struct of_phandle_args *args)
+                                        const struct of_phandle_args *args)
 {
        struct spear1310_miphy_priv *priv = dev_get_drvdata(dev);
 
index 34a1cf21015f59d89de002ae154e01173b25f6dc..85a60d64ebb7dbadda62d530dfb6d0179a11bc2b 100644 (file)
@@ -220,7 +220,7 @@ static SIMPLE_DEV_PM_OPS(spear1340_miphy_pm_ops, spear1340_miphy_suspend,
                         spear1340_miphy_resume);
 
 static struct phy *spear1340_miphy_xlate(struct device *dev,
-                                        struct of_phandle_args *args)
+                                        const struct of_phandle_args *args)
 {
        struct spear1340_miphy_priv *priv = dev_get_drvdata(dev);
 
index d5e7e44000b56ec0fe16703a52e47b05926ac866..9dbe60dcf3190d0e96b0fa915f784d1a91ec7701 100644 (file)
@@ -574,7 +574,7 @@ static void stm32_usbphyc_switch_setup(struct stm32_usbphyc *usbphyc,
 }
 
 static struct phy *stm32_usbphyc_of_xlate(struct device *dev,
-                                         struct of_phandle_args *args)
+                                         const struct of_phandle_args *args)
 {
        struct stm32_usbphyc *usbphyc = dev_get_drvdata(dev);
        struct stm32_usbphyc_phy *usbphyc_phy = NULL;
index 142ebe0247cc00f82080303269835ad9565e584f..0dc86a7740e382f2dada87af3d1964bc92ddb52e 100644 (file)
@@ -22,7 +22,7 @@
 #include "xusb.h"
 
 static struct phy *tegra_xusb_pad_of_xlate(struct device *dev,
-                                          struct of_phandle_args *args)
+                                          const struct of_phandle_args *args)
 {
        struct tegra_xusb_pad *pad = dev_get_drvdata(dev);
        struct phy *phy = NULL;
index 3f1d43e8b7ad1fbcfd3399db0150c59eb6e96ad4..8b3b937de624838c8f57265dbf5ffe14f4b9d6c1 100644 (file)
@@ -495,7 +495,7 @@ static void serdes_am654_release(struct phy *x)
 }
 
 static struct phy *serdes_am654_xlate(struct device *dev,
-                                     struct of_phandle_args *args)
+                                     const struct of_phandle_args *args)
 {
        struct serdes_am654 *am654_phy;
        struct phy *phy;
index b7a9ef3f465440008933fa3c7a20c44599baa150..0fe577f0d6c1e66dbb3803e115f954546cd9687d 100644 (file)
@@ -119,7 +119,7 @@ static const struct phy_ops da8xx_usb20_phy_ops = {
 };
 
 static struct phy *da8xx_usb_phy_of_xlate(struct device *dev,
-                                        struct of_phandle_args *args)
+                                        const struct of_phandle_args *args)
 {
        struct da8xx_usb_phy *d_phy = dev_get_drvdata(dev);
 
index 81dd1c3449d9539b858982d6310348fe852b6532..b30bf740e2e0df81f1c03caa9624e08808147d03 100644 (file)
@@ -297,7 +297,7 @@ static const struct phy_ops phy_gmii_sel_ops = {
 };
 
 static struct phy *phy_gmii_sel_of_xlate(struct device *dev,
-                                        struct of_phandle_args *args)
+                                        const struct of_phandle_args *args)
 {
        struct phy_gmii_sel_priv *priv = dev_get_drvdata(dev);
        int phy_id = args->args[0];
index 2559c6594cea2bcdde2a06af52bcc40eebf246d0..f72c5257d712771b6aad09bb766732faffa54fd3 100644 (file)
@@ -768,7 +768,7 @@ static const unsigned int icm_matrix[NUM_LANES][CONTROLLERS_PER_LANE] = {
 
 /* Translate OF phandle and args to PHY instance. */
 static struct phy *xpsgtr_xlate(struct device *dev,
-                               struct of_phandle_args *args)
+                               const struct of_phandle_args *args)
 {
        struct xpsgtr_dev *gtr_dev = dev_get_drvdata(dev);
        struct xpsgtr_phy *gtr_phy;
index 7641848be4defd903691d61932521a07c02fdb79..96ef57a7d385c1abc45c6ea1fb2390c225dec0f6 100644 (file)
@@ -685,7 +685,7 @@ static const struct phy_ops sata_phy_ops = {
 };
 
 static struct phy *tegra_xusb_padctl_xlate(struct device *dev,
-                                          struct of_phandle_args *args)
+                                          const struct of_phandle_args *args)
 {
        struct tegra_xusb_padctl *padctl = dev_get_drvdata(dev);
        unsigned int index = args->args[0];
index f6d607ef0e80146b31962d5842eee1eaa0be20fe..58be86e6fe83ba2a0357d62e00af502b88432b9e 100644 (file)
@@ -176,7 +176,7 @@ struct phy_provider {
        struct module           *owner;
        struct list_head        list;
        struct phy * (*of_xlate)(struct device *dev,
-               struct of_phandle_args *args);
+                                const struct of_phandle_args *args);
 };
 
 /**
@@ -265,7 +265,7 @@ void phy_put(struct device *dev, struct phy *phy);
 void devm_phy_put(struct device *dev, struct phy *phy);
 struct phy *of_phy_get(struct device_node *np, const char *con_id);
 struct phy *of_phy_simple_xlate(struct device *dev,
-       struct of_phandle_args *args);
+                               const struct of_phandle_args *args);
 struct phy *phy_create(struct device *dev, struct device_node *node,
                       const struct phy_ops *ops);
 struct phy *devm_phy_create(struct device *dev, struct device_node *node,
@@ -275,11 +275,11 @@ void devm_phy_destroy(struct device *dev, struct phy *phy);
 struct phy_provider *__of_phy_provider_register(struct device *dev,
        struct device_node *children, struct module *owner,
        struct phy * (*of_xlate)(struct device *dev,
-                                struct of_phandle_args *args));
+                                const struct of_phandle_args *args));
 struct phy_provider *__devm_of_phy_provider_register(struct device *dev,
        struct device_node *children, struct module *owner,
        struct phy * (*of_xlate)(struct device *dev,
-                                struct of_phandle_args *args));
+                                const struct of_phandle_args *args));
 void of_phy_provider_unregister(struct phy_provider *phy_provider);
 void devm_of_phy_provider_unregister(struct device *dev,
        struct phy_provider *phy_provider);
@@ -479,7 +479,7 @@ static inline struct phy *of_phy_get(struct device_node *np, const char *con_id)
 }
 
 static inline struct phy *of_phy_simple_xlate(struct device *dev,
-       struct of_phandle_args *args)
+                                             const struct of_phandle_args *args)
 {
        return ERR_PTR(-ENOSYS);
 }
@@ -509,7 +509,7 @@ static inline void devm_phy_destroy(struct device *dev, struct phy *phy)
 static inline struct phy_provider *__of_phy_provider_register(
        struct device *dev, struct device_node *children, struct module *owner,
        struct phy * (*of_xlate)(struct device *dev,
-                                struct of_phandle_args *args))
+                                const struct of_phandle_args *args))
 {
        return ERR_PTR(-ENOSYS);
 }
@@ -517,7 +517,7 @@ static inline struct phy_provider *__of_phy_provider_register(
 static inline struct phy_provider *__devm_of_phy_provider_register(struct device
        *dev, struct device_node *children, struct module *owner,
        struct phy * (*of_xlate)(struct device *dev,
-                                struct of_phandle_args *args))
+                                const struct of_phandle_args *args))
 {
        return ERR_PTR(-ENOSYS);
 }
This page took 0.121586 seconds and 4 git commands to generate.