diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-15 09:33:51 +0200 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-08-03 15:05:09 +0200 |
commit | 4a9e5ca1a54a3cb4a5f85359f646638cec567607 (patch) | |
tree | 9f6048b6e0411c574ad9a6365bab0fe703c0ebf3 /drivers/phy/phy-armada375-usb2.c | |
parent | phy: ulpi_phy: Add const qualifier to ops (diff) | |
download | linux-4a9e5ca1a54a3cb4a5f85359f646638cec567607.tar.xz linux-4a9e5ca1a54a3cb4a5f85359f646638cec567607.zip |
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-armada375-usb2.c')
-rw-r--r-- | drivers/phy/phy-armada375-usb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-armada375-usb2.c b/drivers/phy/phy-armada375-usb2.c index 39c7d21f12da..1a3db288c0a9 100644 --- a/drivers/phy/phy-armada375-usb2.c +++ b/drivers/phy/phy-armada375-usb2.c @@ -51,7 +51,7 @@ static int armada375_usb_phy_init(struct phy *phy) return 0; } -static struct phy_ops armada375_usb_phy_ops = { +static const struct phy_ops armada375_usb_phy_ops = { .init = armada375_usb_phy_init, .owner = THIS_MODULE, }; |