Skip to content

drivers: phy: Constify static phy_ops structs

Rikard Falkeborn linux-arm-kernel linux-arm-msm linux-usb lkml 1 version Applied

Status from this message: Applied all, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8phy: cadence: salvo: Constify cdns_salvo_phy_opsdrivers/phy/cadence/phy-cadence-salvo.c+1 -10 replies
2/8phy: fsl-imx8mq-usb: Constify imx8mq_usb_phy_opsdrivers/phy/freescale/phy-fsl-imx8mq-usb.c+1 -10 replies
3/8phy: hisilicon; Constify hi3660_phy_opsdrivers/phy/hisilicon/phy-hi3660-usb3.c+1 -10 replies
4/8phy: lantiq: rcu-usb2: Constify ltq_rcu_usb2_phy_opsdrivers/phy/lantiq/phy-lantiq-rcu-usb2.c+1 -10 replies
5/8phy: lantiq: vrx200-pcie: Constify ltq_vrx200_pcie_phy_opsdrivers/phy/lantiq/phy-lantiq-vrx200-pcie.c+1 -11 reply
6/8phy: ralink-usb: Constify ralink_usb_phy_opsdrivers/phy/ralink/phy-ralink-usb.c+1 -10 replies
7/8phy: samsung-ufs: Constify samsung_ufs_phy_opsdrivers/phy/samsung/phy-samsung-ufs.c+1 -10 replies
8/8phy: qcom-ipq4019-usb: Constify static phy_ops structsdrivers/phy/qualcomm/phy-qcom-ipq4019-usb.c+2 -20 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchMartin Blumenstingl
1/8
2/8
3/8
4/8
5/8A-b
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] drivers: phy: Constify static phy_ops structs

This series constifies all static phy_ops structs in drivers/phy. Typically the only usage is to pass the address of it to devm_phy_create() which takes a const pointer. The lone exception is in drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c where the address of the structs is assigned to the data-field in of_device_id, which is a const void pointer.

Making the structs const allows the compiler to put them in read-only memory.

The patches are all independent of each other, and have been compile-tested only.

Rikard Falkeborn (8):
phy: cadence: salvo: Constify cdns_salvo_phy_ops
phy: fsl-imx8mq-usb: Constify imx8mq_usb_phy_ops
phy: hisilicon; Constify hi3660_phy_ops
phy: lantiq: rcu-usb2: Constify ltq_rcu_usb2_phy_ops
phy: lantiq: vrx200-pcie: Constify ltq_vrx200_pcie_phy_ops
phy: ralink-usb: Constify ralink_usb_phy_ops
phy: samsung-ufs: Constify samsung_ufs_phy_ops
phy: qcom-ipq4019-usb: Constify static phy_ops structs

 drivers/phy/cadence/phy-cadence-salvo.c     | 2 +-
 drivers/phy/freescale/phy-fsl-imx8mq-usb.c  | 2 +-
 drivers/phy/hisilicon/phy-hi3660-usb3.c     | 2 +-
 drivers/phy/lantiq/phy-lantiq-rcu-usb2.c    | 2 +-
 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c | 2 +-
 drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c | 4 ++--
 drivers/phy/ralink/phy-ralink-usb.c         | 2 +-
 drivers/phy/samsung/phy-samsung-ufs.c       | 2 +-
 8 files changed, 9 insertions(+), 9 deletions(-)
Signature · 1 line
2.28.0