summaryrefslogtreecommitdiff
path: root/drivers/phy/phy-omap-usb2.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-15 07:33:51 (GMT)
committerKishon Vijay Abraham I <kishon@ti.com>2015-08-03 13:05:09 (GMT)
commit4a9e5ca1a54a3cb4a5f85359f646638cec567607 (patch)
tree9f6048b6e0411c574ad9a6365bab0fe703c0ebf3 /drivers/phy/phy-omap-usb2.c
parent42ad8f6721720513f3569a67b157fcff068aa92d (diff)
downloadlinux-4a9e5ca1a54a3cb4a5f85359f646638cec567607.tar.xz
phy: Constify struct phy_ops variables
The phy_ops variables are never modified after initialized in these drivers, so make them const. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/phy-omap-usb2.c')
-rw-r--r--drivers/phy/phy-omap-usb2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c
index c1a4686..0fe8058 100644
--- a/drivers/phy/phy-omap-usb2.c
+++ b/drivers/phy/phy-omap-usb2.c
@@ -137,7 +137,7 @@ static int omap_usb_init(struct phy *x)
return 0;
}
-static struct phy_ops ops = {
+static const struct phy_ops ops = {
.init = omap_usb_init,
.power_on = omap_usb_power_on,
.power_off = omap_usb_power_off,