diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-07-15 03:33:51 -0400 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-08-03 09:05:09 -0400 |
commit | 4a9e5ca1a54a3cb4a5f85359f646638cec567607 (patch) | |
tree | 9f6048b6e0411c574ad9a6365bab0fe703c0ebf3 /drivers/phy/phy-rcar-gen2.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-rcar-gen2.c')
-rw-r--r-- | drivers/phy/phy-rcar-gen2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-rcar-gen2.c b/drivers/phy/phy-rcar-gen2.c index 39d9b2995435..6e0d9fa8e1d1 100644 --- a/drivers/phy/phy-rcar-gen2.c +++ b/drivers/phy/phy-rcar-gen2.c | |||
@@ -184,7 +184,7 @@ static int rcar_gen2_phy_power_off(struct phy *p) | |||
184 | return 0; | 184 | return 0; |
185 | } | 185 | } |
186 | 186 | ||
187 | static struct phy_ops rcar_gen2_phy_ops = { | 187 | static const struct phy_ops rcar_gen2_phy_ops = { |
188 | .init = rcar_gen2_phy_init, | 188 | .init = rcar_gen2_phy_init, |
189 | .exit = rcar_gen2_phy_exit, | 189 | .exit = rcar_gen2_phy_exit, |
190 | .power_on = rcar_gen2_phy_power_on, | 190 | .power_on = rcar_gen2_phy_power_on, |