@@ -886,7 +886,7 @@ static int marvell_read_link(struct mii_phy *phy)
886
886
SUPPORTED_1000baseT_Half | SUPPORTED_1000baseT_Full)
887
887
888
888
/* Broadcom BCM 5201 */
889
- static struct mii_phy_ops bcm5201_phy_ops = {
889
+ static const struct mii_phy_ops bcm5201_phy_ops = {
890
890
.init = bcm5201_init ,
891
891
.suspend = bcm5201_suspend ,
892
892
.setup_aneg = genmii_setup_aneg ,
@@ -905,7 +905,7 @@ static struct mii_phy_def bcm5201_phy_def = {
905
905
};
906
906
907
907
/* Broadcom BCM 5221 */
908
- static struct mii_phy_ops bcm5221_phy_ops = {
908
+ static const struct mii_phy_ops bcm5221_phy_ops = {
909
909
.suspend = bcm5221_suspend ,
910
910
.init = bcm5221_init ,
911
911
.setup_aneg = genmii_setup_aneg ,
@@ -924,7 +924,7 @@ static struct mii_phy_def bcm5221_phy_def = {
924
924
};
925
925
926
926
/* Broadcom BCM 5241 */
927
- static struct mii_phy_ops bcm5241_phy_ops = {
927
+ static const struct mii_phy_ops bcm5241_phy_ops = {
928
928
.suspend = bcm5241_suspend ,
929
929
.init = bcm5241_init ,
930
930
.setup_aneg = genmii_setup_aneg ,
@@ -942,7 +942,7 @@ static struct mii_phy_def bcm5241_phy_def = {
942
942
};
943
943
944
944
/* Broadcom BCM 5400 */
945
- static struct mii_phy_ops bcm5400_phy_ops = {
945
+ static const struct mii_phy_ops bcm5400_phy_ops = {
946
946
.init = bcm5400_init ,
947
947
.suspend = bcm5400_suspend ,
948
948
.setup_aneg = bcm54xx_setup_aneg ,
@@ -961,7 +961,7 @@ static struct mii_phy_def bcm5400_phy_def = {
961
961
};
962
962
963
963
/* Broadcom BCM 5401 */
964
- static struct mii_phy_ops bcm5401_phy_ops = {
964
+ static const struct mii_phy_ops bcm5401_phy_ops = {
965
965
.init = bcm5401_init ,
966
966
.suspend = bcm5401_suspend ,
967
967
.setup_aneg = bcm54xx_setup_aneg ,
@@ -980,7 +980,7 @@ static struct mii_phy_def bcm5401_phy_def = {
980
980
};
981
981
982
982
/* Broadcom BCM 5411 */
983
- static struct mii_phy_ops bcm5411_phy_ops = {
983
+ static const struct mii_phy_ops bcm5411_phy_ops = {
984
984
.init = bcm5411_init ,
985
985
.suspend = generic_suspend ,
986
986
.setup_aneg = bcm54xx_setup_aneg ,
@@ -999,7 +999,7 @@ static struct mii_phy_def bcm5411_phy_def = {
999
999
};
1000
1000
1001
1001
/* Broadcom BCM 5421 */
1002
- static struct mii_phy_ops bcm5421_phy_ops = {
1002
+ static const struct mii_phy_ops bcm5421_phy_ops = {
1003
1003
.init = bcm5421_init ,
1004
1004
.suspend = generic_suspend ,
1005
1005
.setup_aneg = bcm54xx_setup_aneg ,
@@ -1019,7 +1019,7 @@ static struct mii_phy_def bcm5421_phy_def = {
1019
1019
};
1020
1020
1021
1021
/* Broadcom BCM 5421 built-in K2 */
1022
- static struct mii_phy_ops bcm5421k2_phy_ops = {
1022
+ static const struct mii_phy_ops bcm5421k2_phy_ops = {
1023
1023
.init = bcm5421_init ,
1024
1024
.suspend = generic_suspend ,
1025
1025
.setup_aneg = bcm54xx_setup_aneg ,
@@ -1037,7 +1037,7 @@ static struct mii_phy_def bcm5421k2_phy_def = {
1037
1037
.ops = & bcm5421k2_phy_ops
1038
1038
};
1039
1039
1040
- static struct mii_phy_ops bcm5461_phy_ops = {
1040
+ static const struct mii_phy_ops bcm5461_phy_ops = {
1041
1041
.init = bcm5421_init ,
1042
1042
.suspend = generic_suspend ,
1043
1043
.setup_aneg = bcm54xx_setup_aneg ,
@@ -1057,7 +1057,7 @@ static struct mii_phy_def bcm5461_phy_def = {
1057
1057
};
1058
1058
1059
1059
/* Broadcom BCM 5462 built-in Vesta */
1060
- static struct mii_phy_ops bcm5462V_phy_ops = {
1060
+ static const struct mii_phy_ops bcm5462V_phy_ops = {
1061
1061
.init = bcm5421_init ,
1062
1062
.suspend = generic_suspend ,
1063
1063
.setup_aneg = bcm54xx_setup_aneg ,
@@ -1076,15 +1076,15 @@ static struct mii_phy_def bcm5462V_phy_def = {
1076
1076
};
1077
1077
1078
1078
/* Marvell 88E1101 amd 88E1111 */
1079
- static struct mii_phy_ops marvell88e1101_phy_ops = {
1079
+ static const struct mii_phy_ops marvell88e1101_phy_ops = {
1080
1080
.suspend = generic_suspend ,
1081
1081
.setup_aneg = marvell_setup_aneg ,
1082
1082
.setup_forced = marvell_setup_forced ,
1083
1083
.poll_link = genmii_poll_link ,
1084
1084
.read_link = marvell_read_link
1085
1085
};
1086
1086
1087
- static struct mii_phy_ops marvell88e1111_phy_ops = {
1087
+ static const struct mii_phy_ops marvell88e1111_phy_ops = {
1088
1088
.init = marvell88e1111_init ,
1089
1089
.suspend = generic_suspend ,
1090
1090
.setup_aneg = marvell_setup_aneg ,
@@ -1122,7 +1122,7 @@ static struct mii_phy_def marvell88e1111_phy_def = {
1122
1122
};
1123
1123
1124
1124
/* Generic implementation for most 10/100 PHYs */
1125
- static struct mii_phy_ops generic_phy_ops = {
1125
+ static const struct mii_phy_ops generic_phy_ops = {
1126
1126
.setup_aneg = genmii_setup_aneg ,
1127
1127
.setup_forced = genmii_setup_forced ,
1128
1128
.poll_link = genmii_poll_link ,
0 commit comments