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-spear1340-miphy.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-spear1340-miphy.c')
-rw-r--r-- | drivers/phy/phy-spear1340-miphy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-spear1340-miphy.c b/drivers/phy/phy-spear1340-miphy.c index 494240da4a39..97280c0cf612 100644 --- a/drivers/phy/phy-spear1340-miphy.c +++ b/drivers/phy/phy-spear1340-miphy.c | |||
@@ -189,7 +189,7 @@ static const struct of_device_id spear1340_miphy_of_match[] = { | |||
189 | }; | 189 | }; |
190 | MODULE_DEVICE_TABLE(of, spear1340_miphy_of_match); | 190 | MODULE_DEVICE_TABLE(of, spear1340_miphy_of_match); |
191 | 191 | ||
192 | static struct phy_ops spear1340_miphy_ops = { | 192 | static const struct phy_ops spear1340_miphy_ops = { |
193 | .init = spear1340_miphy_init, | 193 | .init = spear1340_miphy_init, |
194 | .exit = spear1340_miphy_exit, | 194 | .exit = spear1340_miphy_exit, |
195 | .owner = THIS_MODULE, | 195 | .owner = THIS_MODULE, |