summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-mt65xx-usb3.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-01-08 16:05:56 +0530
committerKishon Vijay Abraham I <kishon@ti.com>2017-01-16 16:41:51 +0530
commita8df2768c2ed38eb7da0f24f50a0e105f0ff7665 (patch)
treeca7552ab5a58a6b18365abee2bfa0737cd7b2998 /drivers/phy/phy-mt65xx-usb3.c
parent66adb88955e9549707a03bbc1f3d640557ee4d9f (diff)
downloadlinux-stable-a8df2768c2ed38eb7da0f24f50a0e105f0ff7665.tar.gz
linux-stable-a8df2768c2ed38eb7da0f24f50a0e105f0ff7665.tar.bz2
linux-stable-a8df2768c2ed38eb7da0f24f50a0e105f0ff7665.zip
drivers: phy: constify phy_ops structures
Declare phy_ops structures as const as they are only passed as an argument to the function devm_phy_create. This argument is of type const struct phy_ops *, so phy_ops structures having this property can be declared as const. Done using Coccinelle: Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/phy-mt65xx-usb3.c')
-rw-r--r--drivers/phy/phy-mt65xx-usb3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-mt65xx-usb3.c b/drivers/phy/phy-mt65xx-usb3.c
index 4d85e730ccab..d9720675b9db 100644
--- a/drivers/phy/phy-mt65xx-usb3.c
+++ b/drivers/phy/phy-mt65xx-usb3.c
@@ -506,7 +506,7 @@ static struct phy *mt65xx_phy_xlate(struct device *dev,
return instance->phy;
}
-static struct phy_ops mt65xx_u3phy_ops = {
+static const struct phy_ops mt65xx_u3phy_ops = {
.init = mt65xx_phy_init,
.exit = mt65xx_phy_exit,
.power_on = mt65xx_phy_power_on,