summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-hi6220-usb.c
diff options
context:
space:
mode:
authorBhumika Goyal2017-01-08 11:35:56 +0100
committerKishon Vijay Abraham I2017-01-16 12:11:51 +0100
commita8df2768c2ed38eb7da0f24f50a0e105f0ff7665 (patch)
treeca7552ab5a58a6b18365abee2bfa0737cd7b2998 /drivers/phy/phy-hi6220-usb.c
parentphy: sun4i-usb: Replace the deprecated extcon API (diff)
downloadkernel-qcow2-linux-a8df2768c2ed38eb7da0f24f50a0e105f0ff7665.tar.gz
kernel-qcow2-linux-a8df2768c2ed38eb7da0f24f50a0e105f0ff7665.tar.xz
kernel-qcow2-linux-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-hi6220-usb.c')
-rw-r--r--drivers/phy/phy-hi6220-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-hi6220-usb.c b/drivers/phy/phy-hi6220-usb.c
index b2141cbd4cf6..398c1021deec 100644
--- a/drivers/phy/phy-hi6220-usb.c
+++ b/drivers/phy/phy-hi6220-usb.c
@@ -112,7 +112,7 @@ static int hi6220_phy_exit(struct phy *phy)
return hi6220_phy_setup(priv, false);
}
-static struct phy_ops hi6220_phy_ops = {
+static const struct phy_ops hi6220_phy_ops = {
.init = hi6220_phy_start,
.exit = hi6220_phy_exit,
.owner = THIS_MODULE,