summaryrefslogtreecommitdiff
path: root/drivers/phy/lantiq
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-08-24 00:00:21 +0200
committerVinod Koul <vkoul@kernel.org>2020-08-31 14:36:37 +0530
commitb285d2ae9115aef3bfb3d73e8a6234e421cfea1b (patch)
tree86b3d02f009e882a06569014f7ab8a3a7df959a6 /drivers/phy/lantiq
parentfdde71d351eb4b0a4ba4b824393d219d4223cd54 (diff)
phy: lantiq: rcu-usb2: Constify ltq_rcu_usb2_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-5-rikard.falkeborn@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/lantiq')
-rw-r--r--drivers/phy/lantiq/phy-lantiq-rcu-usb2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c b/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c
index be09b1530ae6..a7d126192cf1 100644
--- a/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c
+++ b/drivers/phy/lantiq/phy-lantiq-rcu-usb2.c
@@ -141,7 +141,7 @@ static int ltq_rcu_usb2_phy_power_off(struct phy *phy)
return 0;
}
-static struct phy_ops ltq_rcu_usb2_phy_ops = {
+static const struct phy_ops ltq_rcu_usb2_phy_ops = {
.init = ltq_rcu_usb2_phy_init,
.power_on = ltq_rcu_usb2_phy_power_on,
.power_off = ltq_rcu_usb2_phy_power_off,