diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-15 10:33:51 +0300 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-08-03 16:05:09 +0300 |
commit | 4a9e5ca1a54a3cb4a5f85359f646638cec567607 (patch) | |
tree | 9f6048b6e0411c574ad9a6365bab0fe703c0ebf3 /drivers/phy/phy-bcm-kona-usb2.c | |
parent | 42ad8f6721720513f3569a67b157fcff068aa92d (diff) | |
download | linux-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-bcm-kona-usb2.c')
-rw-r--r-- | drivers/phy/phy-bcm-kona-usb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-bcm-kona-usb2.c b/drivers/phy/phy-bcm-kona-usb2.c index ef2dc1aab2b9..7b67fe49e30b 100644 --- a/drivers/phy/phy-bcm-kona-usb2.c +++ b/drivers/phy/phy-bcm-kona-usb2.c @@ -91,7 +91,7 @@ static int bcm_kona_usb_phy_power_off(struct phy *gphy) return 0; } -static struct phy_ops ops = { +static const struct phy_ops ops = { .init = bcm_kona_usb_phy_init, .power_on = bcm_kona_usb_phy_power_on, .power_off = bcm_kona_usb_phy_power_off, |