diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-15 15:33:51 +0800 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-08-03 18:35:09 +0530 |
commit | 4a9e5ca1a54a3cb4a5f85359f646638cec567607 (patch) | |
tree | 9f6048b6e0411c574ad9a6365bab0fe703c0ebf3 /drivers/phy/phy-miphy28lp.c | |
parent | 42ad8f6721720513f3569a67b157fcff068aa92d (diff) |
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-miphy28lp.c')
-rw-r--r-- | drivers/phy/phy-miphy28lp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-miphy28lp.c b/drivers/phy/phy-miphy28lp.c index 677c290f4b14..c47b56b4a2b8 100644 --- a/drivers/phy/phy-miphy28lp.c +++ b/drivers/phy/phy-miphy28lp.c @@ -1132,7 +1132,7 @@ static struct phy *miphy28lp_xlate(struct device *dev, return miphy_phy->phy; } -static struct phy_ops miphy28lp_ops = { +static const struct phy_ops miphy28lp_ops = { .init = miphy28lp_init, .owner = THIS_MODULE, }; |