Thread (5 messages) 5 messages, 5 authors, 2024-02-23

Re: [PATCH] phy: constify of_phandle_args in xlate

From: Thierry Reding <hidden>
Date: 2024-02-19 15:58:28
Also in: dri-devel, linux-amlogic, linux-arm-kernel, linux-arm-msm, linux-gpio, linux-mediatek, linux-phy, linux-renesas-soc, linux-rockchip, linux-samsung-soc, linux-sunxi, linux-tegra, lkml

On Sat Feb 17, 2024 at 10:39 AM CET, Krzysztof Kozlowski wrote:
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 <redacted>
---
 drivers/phy/allwinner/phy-sun4i-usb.c              |  2 +-
 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c     |  2 +-
 drivers/phy/broadcom/phy-bcm-sr-pcie.c             |  2 +-
 drivers/phy/broadcom/phy-bcm-sr-usb.c              |  2 +-
 drivers/phy/broadcom/phy-bcm63xx-usbh.c            |  2 +-
 drivers/phy/broadcom/phy-brcm-usb.c                |  2 +-
 drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c    |  2 +-
 drivers/phy/freescale/phy-fsl-lynx-28g.c           |  2 +-
 drivers/phy/hisilicon/phy-histb-combphy.c          |  2 +-
 drivers/phy/intel/phy-intel-lgm-combo.c            |  2 +-
 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c        |  2 +-
 drivers/phy/marvell/phy-armada375-usb2.c           |  2 +-
 drivers/phy/marvell/phy-armada38x-comphy.c         |  2 +-
 drivers/phy/marvell/phy-berlin-sata.c              |  2 +-
 drivers/phy/marvell/phy-mvebu-a3700-comphy.c       |  2 +-
 drivers/phy/marvell/phy-mvebu-cp110-comphy.c       |  2 +-
 drivers/phy/mediatek/phy-mtk-mipi-csi-0-5.c        |  2 +-
 drivers/phy/mediatek/phy-mtk-tphy.c                |  2 +-
 drivers/phy/mediatek/phy-mtk-xsphy.c               |  2 +-
 drivers/phy/microchip/lan966x_serdes.c             |  2 +-
 drivers/phy/microchip/sparx5_serdes.c              |  2 +-
 drivers/phy/mscc/phy-ocelot-serdes.c               |  2 +-
 drivers/phy/phy-core.c                             |  8 ++++----
 drivers/phy/phy-xgene.c                            |  2 +-
 drivers/phy/qualcomm/phy-qcom-qmp-combo.c          |  2 +-
 drivers/phy/ralink/phy-mt7621-pci.c                |  2 +-
 drivers/phy/renesas/phy-rcar-gen2.c                |  2 +-
 drivers/phy/renesas/phy-rcar-gen3-usb2.c           |  2 +-
 drivers/phy/renesas/r8a779f0-ether-serdes.c        |  2 +-
 drivers/phy/rockchip/phy-rockchip-naneng-combphy.c |  2 +-
 drivers/phy/rockchip/phy-rockchip-pcie.c           |  2 +-
 drivers/phy/samsung/phy-exynos-mipi-video.c        |  2 +-
 drivers/phy/samsung/phy-exynos5-usbdrd.c           |  2 +-
 drivers/phy/samsung/phy-samsung-usb2.c             |  2 +-
 drivers/phy/socionext/phy-uniphier-usb2.c          |  2 +-
 drivers/phy/st/phy-miphy28lp.c                     |  2 +-
 drivers/phy/st/phy-spear1310-miphy.c               |  2 +-
 drivers/phy/st/phy-spear1340-miphy.c               |  2 +-
 drivers/phy/st/phy-stm32-usbphyc.c                 |  2 +-
 drivers/phy/tegra/xusb.c                           |  2 +-
 drivers/phy/ti/phy-am654-serdes.c                  |  2 +-
 drivers/phy/ti/phy-da8xx-usb.c                     |  2 +-
 drivers/phy/ti/phy-gmii-sel.c                      |  2 +-
 drivers/phy/xilinx/phy-zynqmp.c                    |  2 +-
 drivers/pinctrl/tegra/pinctrl-tegra-xusb.c         |  2 +-
 include/linux/phy/phy.h                            | 14 +++++++-------
 46 files changed, 55 insertions(+), 55 deletions(-)
Makes sense:

Acked-by: Thierry Reding <redacted>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help