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

phy: fsl-imx8mq-usb: Constify imx8mq_usb_phy_ops

The only usage is to pass its address to devm_phy_create() which takes a
const pointer. Make it const to allow the compiler to put it in
read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200823220025.17588-3-rikard.falkeborn@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rikard Falkeborn and committed by
Vinod Koul
2bf314d6 e947ef4d

+1 -1
+1 -1
drivers/phy/freescale/phy-fsl-imx8mq-usb.c
··· 124 124 return 0; 125 125 } 126 126 127 - static struct phy_ops imx8mq_usb_phy_ops = { 127 + static const struct phy_ops imx8mq_usb_phy_ops = { 128 128 .init = imx8mq_usb_phy_init, 129 129 .power_on = imx8mq_phy_power_on, 130 130 .power_off = imx8mq_phy_power_off,