diff options
Diffstat (limited to 'drivers/net')
38 files changed, 40 insertions, 40 deletions
diff --git a/drivers/net/arm/ep93xx_eth.c b/drivers/net/arm/ep93xx_eth.c index fbf4645417d..2be49c81799 100644 --- a/drivers/net/arm/ep93xx_eth.c +++ b/drivers/net/arm/ep93xx_eth.c | |||
@@ -762,7 +762,7 @@ static u32 ep93xx_get_link(struct net_device *dev) | |||
762 | return mii_link_ok(&ep->mii); | 762 | return mii_link_ok(&ep->mii); |
763 | } | 763 | } |
764 | 764 | ||
765 | static struct ethtool_ops ep93xx_ethtool_ops = { | 765 | static const struct ethtool_ops ep93xx_ethtool_ops = { |
766 | .get_drvinfo = ep93xx_get_drvinfo, | 766 | .get_drvinfo = ep93xx_get_drvinfo, |
767 | .get_settings = ep93xx_get_settings, | 767 | .get_settings = ep93xx_get_settings, |
768 | .set_settings = ep93xx_set_settings, | 768 | .set_settings = ep93xx_set_settings, |
diff --git a/drivers/net/arm/ixp4xx_eth.c b/drivers/net/arm/ixp4xx_eth.c index 3fe09876e76..691b81eb0f4 100644 --- a/drivers/net/arm/ixp4xx_eth.c +++ b/drivers/net/arm/ixp4xx_eth.c | |||
@@ -802,7 +802,7 @@ static int ixp4xx_nway_reset(struct net_device *dev) | |||
802 | return phy_start_aneg(port->phydev); | 802 | return phy_start_aneg(port->phydev); |
803 | } | 803 | } |
804 | 804 | ||
805 | static struct ethtool_ops ixp4xx_ethtool_ops = { | 805 | static const struct ethtool_ops ixp4xx_ethtool_ops = { |
806 | .get_drvinfo = ixp4xx_get_drvinfo, | 806 | .get_drvinfo = ixp4xx_get_drvinfo, |
807 | .get_settings = ixp4xx_get_settings, | 807 | .get_settings = ixp4xx_get_settings, |
808 | .set_settings = ixp4xx_set_settings, | 808 | .set_settings = ixp4xx_set_settings, |
diff --git a/drivers/net/arm/ks8695net.c b/drivers/net/arm/ks8695net.c index 35cd264abae..4f702d52606 100644 --- a/drivers/net/arm/ks8695net.c +++ b/drivers/net/arm/ks8695net.c | |||
@@ -1063,7 +1063,7 @@ ks8695_get_drvinfo(struct net_device *ndev, struct ethtool_drvinfo *info) | |||
1063 | sizeof(info->bus_info)); | 1063 | sizeof(info->bus_info)); |
1064 | } | 1064 | } |
1065 | 1065 | ||
1066 | static struct ethtool_ops ks8695_ethtool_ops = { | 1066 | static const struct ethtool_ops ks8695_ethtool_ops = { |
1067 | .get_msglevel = ks8695_get_msglevel, | 1067 | .get_msglevel = ks8695_get_msglevel, |
1068 | .set_msglevel = ks8695_set_msglevel, | 1068 | .set_msglevel = ks8695_set_msglevel, |
1069 | .get_settings = ks8695_get_settings, | 1069 | .get_settings = ks8695_get_settings, |
diff --git a/drivers/net/atl1c/atl1c_ethtool.c b/drivers/net/atl1c/atl1c_ethtool.c index 00d11b480af..9b1e0eaebb5 100644 --- a/drivers/net/atl1c/atl1c_ethtool.c +++ b/drivers/net/atl1c/atl1c_ethtool.c | |||
@@ -294,7 +294,7 @@ static int atl1c_nway_reset(struct net_device *netdev) | |||
294 | return 0; | 294 | return 0; |
295 | } | 295 | } |
296 | 296 | ||
297 | static struct ethtool_ops atl1c_ethtool_ops = { | 297 | static const struct ethtool_ops atl1c_ethtool_ops = { |
298 | .get_settings = atl1c_get_settings, | 298 | .get_settings = atl1c_get_settings, |
299 | .set_settings = atl1c_set_settings, | 299 | .set_settings = atl1c_set_settings, |
300 | .get_drvinfo = atl1c_get_drvinfo, | 300 | .get_drvinfo = atl1c_get_drvinfo, |
diff --git a/drivers/net/atl1e/atl1e_ethtool.c b/drivers/net/atl1e/atl1e_ethtool.c index 4003955d7a9..60edb9f232b 100644 --- a/drivers/net/atl1e/atl1e_ethtool.c +++ b/drivers/net/atl1e/atl1e_ethtool.c | |||
@@ -378,7 +378,7 @@ static int atl1e_nway_reset(struct net_device *netdev) | |||
378 | return 0; | 378 | return 0; |
379 | } | 379 | } |
380 | 380 | ||
381 | static struct ethtool_ops atl1e_ethtool_ops = { | 381 | static const struct ethtool_ops atl1e_ethtool_ops = { |
382 | .get_settings = atl1e_get_settings, | 382 | .get_settings = atl1e_get_settings, |
383 | .set_settings = atl1e_set_settings, | 383 | .set_settings = atl1e_set_settings, |
384 | .get_drvinfo = atl1e_get_drvinfo, | 384 | .get_drvinfo = atl1e_get_drvinfo, |
diff --git a/drivers/net/atlx/atl2.c b/drivers/net/atlx/atl2.c index d0bcb572d51..10c06b97001 100644 --- a/drivers/net/atlx/atl2.c +++ b/drivers/net/atlx/atl2.c | |||
@@ -2094,7 +2094,7 @@ static int atl2_nway_reset(struct net_device *netdev) | |||
2094 | return 0; | 2094 | return 0; |
2095 | } | 2095 | } |
2096 | 2096 | ||
2097 | static struct ethtool_ops atl2_ethtool_ops = { | 2097 | static const struct ethtool_ops atl2_ethtool_ops = { |
2098 | .get_settings = atl2_get_settings, | 2098 | .get_settings = atl2_get_settings, |
2099 | .set_settings = atl2_set_settings, | 2099 | .set_settings = atl2_set_settings, |
2100 | .get_drvinfo = atl2_get_drvinfo, | 2100 | .get_drvinfo = atl2_get_drvinfo, |
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index beb13139923..6c45a2233d0 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h | |||
@@ -259,7 +259,7 @@ struct be_adapter { | |||
259 | bool promiscuous; | 259 | bool promiscuous; |
260 | }; | 260 | }; |
261 | 261 | ||
262 | extern struct ethtool_ops be_ethtool_ops; | 262 | extern const struct ethtool_ops be_ethtool_ops; |
263 | 263 | ||
264 | #define drvr_stats(adapter) (&adapter->stats.drvr_stats) | 264 | #define drvr_stats(adapter) (&adapter->stats.drvr_stats) |
265 | 265 | ||
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c index c480c19200d..4ff3cc46540 100644 --- a/drivers/net/benet/be_ethtool.c +++ b/drivers/net/benet/be_ethtool.c | |||
@@ -332,7 +332,7 @@ be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) | |||
332 | return status; | 332 | return status; |
333 | } | 333 | } |
334 | 334 | ||
335 | struct ethtool_ops be_ethtool_ops = { | 335 | const struct ethtool_ops be_ethtool_ops = { |
336 | .get_settings = be_get_settings, | 336 | .get_settings = be_get_settings, |
337 | .get_drvinfo = be_get_drvinfo, | 337 | .get_drvinfo = be_get_drvinfo, |
338 | .get_link = ethtool_op_get_link, | 338 | .get_link = ethtool_op_get_link, |
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index f580b21eabd..14bd3801f7d 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/bfin_mac.c | |||
@@ -491,7 +491,7 @@ static void bfin_mac_ethtool_getdrvinfo(struct net_device *dev, | |||
491 | strcpy(info->bus_info, dev_name(&dev->dev)); | 491 | strcpy(info->bus_info, dev_name(&dev->dev)); |
492 | } | 492 | } |
493 | 493 | ||
494 | static struct ethtool_ops bfin_mac_ethtool_ops = { | 494 | static const struct ethtool_ops bfin_mac_ethtool_ops = { |
495 | .get_settings = bfin_mac_ethtool_getsettings, | 495 | .get_settings = bfin_mac_ethtool_getsettings, |
496 | .set_settings = bfin_mac_ethtool_setsettings, | 496 | .set_settings = bfin_mac_ethtool_setsettings, |
497 | .get_link = ethtool_op_get_link, | 497 | .get_link = ethtool_op_get_link, |
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index e2e50267cc6..20f0ed956df 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -10606,7 +10606,7 @@ static int bnx2x_phys_id(struct net_device *dev, u32 data) | |||
10606 | return 0; | 10606 | return 0; |
10607 | } | 10607 | } |
10608 | 10608 | ||
10609 | static struct ethtool_ops bnx2x_ethtool_ops = { | 10609 | static const struct ethtool_ops bnx2x_ethtool_ops = { |
10610 | .get_settings = bnx2x_get_settings, | 10610 | .get_settings = bnx2x_get_settings, |
10611 | .set_settings = bnx2x_set_settings, | 10611 | .set_settings = bnx2x_set_settings, |
10612 | .get_drvinfo = bnx2x_get_drvinfo, | 10612 | .get_drvinfo = bnx2x_get_drvinfo, |
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 49912eb2a33..2ea036333db 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c | |||
@@ -256,7 +256,7 @@ static void enic_set_msglevel(struct net_device *netdev, u32 value) | |||
256 | enic->msg_enable = value; | 256 | enic->msg_enable = value; |
257 | } | 257 | } |
258 | 258 | ||
259 | static struct ethtool_ops enic_ethtool_ops = { | 259 | static const struct ethtool_ops enic_ethtool_ops = { |
260 | .get_settings = enic_get_settings, | 260 | .get_settings = enic_get_settings, |
261 | .get_drvinfo = enic_get_drvinfo, | 261 | .get_drvinfo = enic_get_drvinfo, |
262 | .get_msglevel = enic_get_msglevel, | 262 | .get_msglevel = enic_get_msglevel, |
diff --git a/drivers/net/igb/igb_ethtool.c b/drivers/net/igb/igb_ethtool.c index 114ccab1f2b..d004c359244 100644 --- a/drivers/net/igb/igb_ethtool.c +++ b/drivers/net/igb/igb_ethtool.c | |||
@@ -2016,7 +2016,7 @@ static void igb_get_strings(struct net_device *netdev, u32 stringset, u8 *data) | |||
2016 | } | 2016 | } |
2017 | } | 2017 | } |
2018 | 2018 | ||
2019 | static struct ethtool_ops igb_ethtool_ops = { | 2019 | static const struct ethtool_ops igb_ethtool_ops = { |
2020 | .get_settings = igb_get_settings, | 2020 | .get_settings = igb_get_settings, |
2021 | .set_settings = igb_set_settings, | 2021 | .set_settings = igb_set_settings, |
2022 | .get_drvinfo = igb_get_drvinfo, | 2022 | .get_drvinfo = igb_get_drvinfo, |
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c index 382c5532e6c..9f7b5d4172b 100644 --- a/drivers/net/ipg.c +++ b/drivers/net/ipg.c | |||
@@ -2186,7 +2186,7 @@ static int ipg_nway_reset(struct net_device *dev) | |||
2186 | return rc; | 2186 | return rc; |
2187 | } | 2187 | } |
2188 | 2188 | ||
2189 | static struct ethtool_ops ipg_ethtool_ops = { | 2189 | static const struct ethtool_ops ipg_ethtool_ops = { |
2190 | .get_settings = ipg_get_settings, | 2190 | .get_settings = ipg_get_settings, |
2191 | .set_settings = ipg_set_settings, | 2191 | .set_settings = ipg_set_settings, |
2192 | .nway_reset = ipg_nway_reset, | 2192 | .nway_reset = ipg_nway_reset, |
diff --git a/drivers/net/korina.c b/drivers/net/korina.c index 51ca54c8ec5..03199fa1000 100644 --- a/drivers/net/korina.c +++ b/drivers/net/korina.c | |||
@@ -743,7 +743,7 @@ static u32 netdev_get_link(struct net_device *dev) | |||
743 | return mii_link_ok(&lp->mii_if); | 743 | return mii_link_ok(&lp->mii_if); |
744 | } | 744 | } |
745 | 745 | ||
746 | static struct ethtool_ops netdev_ethtool_ops = { | 746 | static const struct ethtool_ops netdev_ethtool_ops = { |
747 | .get_drvinfo = netdev_get_drvinfo, | 747 | .get_drvinfo = netdev_get_drvinfo, |
748 | .get_settings = netdev_get_settings, | 748 | .get_settings = netdev_get_settings, |
749 | .set_settings = netdev_set_settings, | 749 | .set_settings = netdev_set_settings, |
diff --git a/drivers/net/ks8842.c b/drivers/net/ks8842.c index 6e74aa9eea4..99e954167fa 100644 --- a/drivers/net/ks8842.c +++ b/drivers/net/ks8842.c | |||
@@ -619,7 +619,7 @@ static const struct net_device_ops ks8842_netdev_ops = { | |||
619 | .ndo_validate_addr = eth_validate_addr | 619 | .ndo_validate_addr = eth_validate_addr |
620 | }; | 620 | }; |
621 | 621 | ||
622 | static struct ethtool_ops ks8842_ethtool_ops = { | 622 | static const struct ethtool_ops ks8842_ethtool_ops = { |
623 | .get_link = ethtool_op_get_link, | 623 | .get_link = ethtool_op_get_link, |
624 | }; | 624 | }; |
625 | 625 | ||
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 01aaca99d29..fb65b427c69 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c | |||
@@ -1079,7 +1079,7 @@ static void macb_get_drvinfo(struct net_device *dev, | |||
1079 | strcpy(info->bus_info, dev_name(&bp->pdev->dev)); | 1079 | strcpy(info->bus_info, dev_name(&bp->pdev->dev)); |
1080 | } | 1080 | } |
1081 | 1081 | ||
1082 | static struct ethtool_ops macb_ethtool_ops = { | 1082 | static const struct ethtool_ops macb_ethtool_ops = { |
1083 | .get_settings = macb_get_settings, | 1083 | .get_settings = macb_get_settings, |
1084 | .set_settings = macb_set_settings, | 1084 | .set_settings = macb_set_settings, |
1085 | .get_drvinfo = macb_get_drvinfo, | 1085 | .get_drvinfo = macb_get_drvinfo, |
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index 449d3511628..224a7469131 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -1410,6 +1410,6 @@ extern void netxen_change_ringparam(struct netxen_adapter *adapter); | |||
1410 | extern int netxen_rom_fast_read(struct netxen_adapter *adapter, int addr, | 1410 | extern int netxen_rom_fast_read(struct netxen_adapter *adapter, int addr, |
1411 | int *valp); | 1411 | int *valp); |
1412 | 1412 | ||
1413 | extern struct ethtool_ops netxen_nic_ethtool_ops; | 1413 | extern const struct ethtool_ops netxen_nic_ethtool_ops; |
1414 | 1414 | ||
1415 | #endif /* __NETXEN_NIC_H_ */ | 1415 | #endif /* __NETXEN_NIC_H_ */ |
diff --git a/drivers/net/netxen/netxen_nic_ethtool.c b/drivers/net/netxen/netxen_nic_ethtool.c index 3886135006e..e376a1c4eb0 100644 --- a/drivers/net/netxen/netxen_nic_ethtool.c +++ b/drivers/net/netxen/netxen_nic_ethtool.c | |||
@@ -963,7 +963,7 @@ static int netxen_nic_set_flags(struct net_device *netdev, u32 data) | |||
963 | return 0; | 963 | return 0; |
964 | } | 964 | } |
965 | 965 | ||
966 | struct ethtool_ops netxen_nic_ethtool_ops = { | 966 | const struct ethtool_ops netxen_nic_ethtool_ops = { |
967 | .get_settings = netxen_nic_get_settings, | 967 | .get_settings = netxen_nic_get_settings, |
968 | .set_settings = netxen_nic_set_settings, | 968 | .set_settings = netxen_nic_set_settings, |
969 | .get_drvinfo = netxen_nic_get_drvinfo, | 969 | .get_drvinfo = netxen_nic_get_drvinfo, |
diff --git a/drivers/net/ps3_gelic_net.c b/drivers/net/ps3_gelic_net.c index a3932c9f340..b211613e9db 100644 --- a/drivers/net/ps3_gelic_net.c +++ b/drivers/net/ps3_gelic_net.c | |||
@@ -1346,7 +1346,7 @@ done: | |||
1346 | return status; | 1346 | return status; |
1347 | } | 1347 | } |
1348 | 1348 | ||
1349 | static struct ethtool_ops gelic_ether_ethtool_ops = { | 1349 | static const struct ethtool_ops gelic_ether_ethtool_ops = { |
1350 | .get_drvinfo = gelic_net_get_drvinfo, | 1350 | .get_drvinfo = gelic_net_get_drvinfo, |
1351 | .get_settings = gelic_ether_get_settings, | 1351 | .get_settings = gelic_ether_get_settings, |
1352 | .get_link = ethtool_op_get_link, | 1352 | .get_link = ethtool_op_get_link, |
diff --git a/drivers/net/ps3_gelic_wireless.c b/drivers/net/ps3_gelic_wireless.c index 6932b08d746..227b141c4fb 100644 --- a/drivers/net/ps3_gelic_wireless.c +++ b/drivers/net/ps3_gelic_wireless.c | |||
@@ -2714,7 +2714,7 @@ static const struct net_device_ops gelic_wl_netdevice_ops = { | |||
2714 | #endif | 2714 | #endif |
2715 | }; | 2715 | }; |
2716 | 2716 | ||
2717 | static struct ethtool_ops gelic_wl_ethtool_ops = { | 2717 | static const struct ethtool_ops gelic_wl_ethtool_ops = { |
2718 | .get_drvinfo = gelic_net_get_drvinfo, | 2718 | .get_drvinfo = gelic_net_get_drvinfo, |
2719 | .get_link = gelic_wl_get_link, | 2719 | .get_link = gelic_wl_get_link, |
2720 | .get_tx_csum = ethtool_op_get_tx_csum, | 2720 | .get_tx_csum = ethtool_op_get_tx_csum, |
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index 997ea2a3d53..45018f283ff 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -731,7 +731,7 @@ static void efx_ethtool_get_pauseparam(struct net_device *net_dev, | |||
731 | } | 731 | } |
732 | 732 | ||
733 | 733 | ||
734 | struct ethtool_ops efx_ethtool_ops = { | 734 | const struct ethtool_ops efx_ethtool_ops = { |
735 | .get_settings = efx_ethtool_get_settings, | 735 | .get_settings = efx_ethtool_get_settings, |
736 | .set_settings = efx_ethtool_set_settings, | 736 | .set_settings = efx_ethtool_set_settings, |
737 | .get_drvinfo = efx_ethtool_get_drvinfo, | 737 | .get_drvinfo = efx_ethtool_get_drvinfo, |
diff --git a/drivers/net/sfc/ethtool.h b/drivers/net/sfc/ethtool.h index 3628e43df14..295ead40335 100644 --- a/drivers/net/sfc/ethtool.h +++ b/drivers/net/sfc/ethtool.h | |||
@@ -22,6 +22,6 @@ extern int efx_ethtool_get_settings(struct net_device *net_dev, | |||
22 | extern int efx_ethtool_set_settings(struct net_device *net_dev, | 22 | extern int efx_ethtool_set_settings(struct net_device *net_dev, |
23 | struct ethtool_cmd *ecmd); | 23 | struct ethtool_cmd *ecmd); |
24 | 24 | ||
25 | extern struct ethtool_ops efx_ethtool_ops; | 25 | extern const struct ethtool_ops efx_ethtool_ops; |
26 | 26 | ||
27 | #endif /* EFX_ETHTOOL_H */ | 27 | #endif /* EFX_ETHTOOL_H */ |
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index 918d4c9e49b..ec9dfb251f3 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
@@ -2428,7 +2428,7 @@ static void bdx_get_ethtool_stats(struct net_device *netdev, | |||
2428 | */ | 2428 | */ |
2429 | static void bdx_ethtool_ops(struct net_device *netdev) | 2429 | static void bdx_ethtool_ops(struct net_device *netdev) |
2430 | { | 2430 | { |
2431 | static struct ethtool_ops bdx_ethtool_ops = { | 2431 | static const struct ethtool_ops bdx_ethtool_ops = { |
2432 | .get_settings = bdx_get_settings, | 2432 | .get_settings = bdx_get_settings, |
2433 | .get_drvinfo = bdx_get_drvinfo, | 2433 | .get_drvinfo = bdx_get_drvinfo, |
2434 | .get_link = ethtool_op_get_link, | 2434 | .get_link = ethtool_op_get_link, |
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c index 87b4a028991..6ce7f775bb7 100644 --- a/drivers/net/usb/asix.c +++ b/drivers/net/usb/asix.c | |||
@@ -731,7 +731,7 @@ static int asix_ioctl (struct net_device *net, struct ifreq *rq, int cmd) | |||
731 | /* We need to override some ethtool_ops so we require our | 731 | /* We need to override some ethtool_ops so we require our |
732 | own structure so we don't interfere with other usbnet | 732 | own structure so we don't interfere with other usbnet |
733 | devices that may be connected at the same time. */ | 733 | devices that may be connected at the same time. */ |
734 | static struct ethtool_ops ax88172_ethtool_ops = { | 734 | static const struct ethtool_ops ax88172_ethtool_ops = { |
735 | .get_drvinfo = asix_get_drvinfo, | 735 | .get_drvinfo = asix_get_drvinfo, |
736 | .get_link = asix_get_link, | 736 | .get_link = asix_get_link, |
737 | .get_msglevel = usbnet_get_msglevel, | 737 | .get_msglevel = usbnet_get_msglevel, |
@@ -873,7 +873,7 @@ out: | |||
873 | return ret; | 873 | return ret; |
874 | } | 874 | } |
875 | 875 | ||
876 | static struct ethtool_ops ax88772_ethtool_ops = { | 876 | static const struct ethtool_ops ax88772_ethtool_ops = { |
877 | .get_drvinfo = asix_get_drvinfo, | 877 | .get_drvinfo = asix_get_drvinfo, |
878 | .get_link = asix_get_link, | 878 | .get_link = asix_get_link, |
879 | .get_msglevel = usbnet_get_msglevel, | 879 | .get_msglevel = usbnet_get_msglevel, |
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index 0ffc0c6d03b..2bed6b087d1 100644 --- a/drivers/net/usb/catc.c +++ b/drivers/net/usb/catc.c | |||
@@ -698,7 +698,7 @@ static int catc_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
698 | return 0; | 698 | return 0; |
699 | } | 699 | } |
700 | 700 | ||
701 | static struct ethtool_ops ops = { | 701 | static const struct ethtool_ops ops = { |
702 | .get_drvinfo = catc_get_drvinfo, | 702 | .get_drvinfo = catc_get_drvinfo, |
703 | .get_settings = catc_get_settings, | 703 | .get_settings = catc_get_settings, |
704 | .get_link = ethtool_op_get_link | 704 | .get_link = ethtool_op_get_link |
diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c index 1d3730d6690..72470f77f55 100644 --- a/drivers/net/usb/dm9601.c +++ b/drivers/net/usb/dm9601.c | |||
@@ -356,7 +356,7 @@ static int dm9601_ioctl(struct net_device *net, struct ifreq *rq, int cmd) | |||
356 | return generic_mii_ioctl(&dev->mii, if_mii(rq), cmd, NULL); | 356 | return generic_mii_ioctl(&dev->mii, if_mii(rq), cmd, NULL); |
357 | } | 357 | } |
358 | 358 | ||
359 | static struct ethtool_ops dm9601_ethtool_ops = { | 359 | static const struct ethtool_ops dm9601_ethtool_ops = { |
360 | .get_drvinfo = dm9601_get_drvinfo, | 360 | .get_drvinfo = dm9601_get_drvinfo, |
361 | .get_link = dm9601_get_link, | 361 | .get_link = dm9601_get_link, |
362 | .get_msglevel = usbnet_get_msglevel, | 362 | .get_msglevel = usbnet_get_msglevel, |
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 123f9b84dd2..3f9c92a2afc 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -829,7 +829,7 @@ static void hso_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *info | |||
829 | usb_make_path(odev->parent->usb, info->bus_info, sizeof info->bus_info); | 829 | usb_make_path(odev->parent->usb, info->bus_info, sizeof info->bus_info); |
830 | } | 830 | } |
831 | 831 | ||
832 | static struct ethtool_ops ops = { | 832 | static const struct ethtool_ops ops = { |
833 | .get_drvinfo = hso_get_drvinfo, | 833 | .get_drvinfo = hso_get_drvinfo, |
834 | .get_link = ethtool_op_get_link | 834 | .get_link = ethtool_op_get_link |
835 | }; | 835 | }; |
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index 7f397365b43..e2a39b9be96 100644 --- a/drivers/net/usb/kaweth.c +++ b/drivers/net/usb/kaweth.c | |||
@@ -778,7 +778,7 @@ static u32 kaweth_get_link(struct net_device *dev) | |||
778 | return kaweth->linkstate; | 778 | return kaweth->linkstate; |
779 | } | 779 | } |
780 | 780 | ||
781 | static struct ethtool_ops ops = { | 781 | static const struct ethtool_ops ops = { |
782 | .get_drvinfo = kaweth_get_drvinfo, | 782 | .get_drvinfo = kaweth_get_drvinfo, |
783 | .get_link = kaweth_get_link | 783 | .get_link = kaweth_get_link |
784 | }; | 784 | }; |
diff --git a/drivers/net/usb/mcs7830.c b/drivers/net/usb/mcs7830.c index 7ae9afe99a4..10873d96b2d 100644 --- a/drivers/net/usb/mcs7830.c +++ b/drivers/net/usb/mcs7830.c | |||
@@ -449,7 +449,7 @@ static void mcs7830_get_regs(struct net_device *net, struct ethtool_regs *regs, | |||
449 | mcs7830_get_reg(dev, 0, regs->len, data); | 449 | mcs7830_get_reg(dev, 0, regs->len, data); |
450 | } | 450 | } |
451 | 451 | ||
452 | static struct ethtool_ops mcs7830_ethtool_ops = { | 452 | static const struct ethtool_ops mcs7830_ethtool_ops = { |
453 | .get_drvinfo = mcs7830_get_drvinfo, | 453 | .get_drvinfo = mcs7830_get_drvinfo, |
454 | .get_regs_len = mcs7830_get_regs_len, | 454 | .get_regs_len = mcs7830_get_regs_len, |
455 | .get_regs = mcs7830_get_regs, | 455 | .get_regs = mcs7830_get_regs, |
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 7b935b84642..6fdaba8674b 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c | |||
@@ -1174,7 +1174,7 @@ static void pegasus_set_msglevel(struct net_device *dev, u32 v) | |||
1174 | pegasus->msg_enable = v; | 1174 | pegasus->msg_enable = v; |
1175 | } | 1175 | } |
1176 | 1176 | ||
1177 | static struct ethtool_ops ops = { | 1177 | static const struct ethtool_ops ops = { |
1178 | .get_drvinfo = pegasus_get_drvinfo, | 1178 | .get_drvinfo = pegasus_get_drvinfo, |
1179 | .get_settings = pegasus_get_settings, | 1179 | .get_settings = pegasus_get_settings, |
1180 | .set_settings = pegasus_set_settings, | 1180 | .set_settings = pegasus_set_settings, |
diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c index d9f84f22fbc..b091e20ca16 100644 --- a/drivers/net/usb/rtl8150.c +++ b/drivers/net/usb/rtl8150.c | |||
@@ -865,7 +865,7 @@ static int rtl8150_get_settings(struct net_device *netdev, struct ethtool_cmd *e | |||
865 | return 0; | 865 | return 0; |
866 | } | 866 | } |
867 | 867 | ||
868 | static struct ethtool_ops ops = { | 868 | static const struct ethtool_ops ops = { |
869 | .get_drvinfo = rtl8150_get_drvinfo, | 869 | .get_drvinfo = rtl8150_get_drvinfo, |
870 | .get_settings = rtl8150_get_settings, | 870 | .get_settings = rtl8150_get_settings, |
871 | .get_link = ethtool_op_get_link | 871 | .get_link = ethtool_op_get_link |
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index 09bd6351f64..938fb3530a7 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c | |||
@@ -625,7 +625,7 @@ static int smsc95xx_ethtool_set_tx_csum(struct net_device *netdev, u32 val) | |||
625 | return smsc95xx_set_csums(dev); | 625 | return smsc95xx_set_csums(dev); |
626 | } | 626 | } |
627 | 627 | ||
628 | static struct ethtool_ops smsc95xx_ethtool_ops = { | 628 | static const struct ethtool_ops smsc95xx_ethtool_ops = { |
629 | .get_link = usbnet_get_link, | 629 | .get_link = usbnet_get_link, |
630 | .nway_reset = usbnet_nway_reset, | 630 | .nway_reset = usbnet_nway_reset, |
631 | .get_drvinfo = usbnet_get_drvinfo, | 631 | .get_drvinfo = usbnet_get_drvinfo, |
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index d166e3385c6..24b36f79515 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c | |||
@@ -854,7 +854,7 @@ void usbnet_set_msglevel (struct net_device *net, u32 level) | |||
854 | EXPORT_SYMBOL_GPL(usbnet_set_msglevel); | 854 | EXPORT_SYMBOL_GPL(usbnet_set_msglevel); |
855 | 855 | ||
856 | /* drivers may override default ethtool_ops in their bind() routine */ | 856 | /* drivers may override default ethtool_ops in their bind() routine */ |
857 | static struct ethtool_ops usbnet_ethtool_ops = { | 857 | static const struct ethtool_ops usbnet_ethtool_ops = { |
858 | .get_settings = usbnet_get_settings, | 858 | .get_settings = usbnet_get_settings, |
859 | .set_settings = usbnet_set_settings, | 859 | .set_settings = usbnet_set_settings, |
860 | .get_link = usbnet_get_link, | 860 | .get_link = usbnet_get_link, |
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index d1941cdff62..ade5b344f75 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c | |||
@@ -129,7 +129,7 @@ static int veth_set_tx_csum(struct net_device *dev, u32 data) | |||
129 | return 0; | 129 | return 0; |
130 | } | 130 | } |
131 | 131 | ||
132 | static struct ethtool_ops veth_ethtool_ops = { | 132 | static const struct ethtool_ops veth_ethtool_ops = { |
133 | .get_settings = veth_get_settings, | 133 | .get_settings = veth_get_settings, |
134 | .get_drvinfo = veth_get_drvinfo, | 134 | .get_drvinfo = veth_get_drvinfo, |
135 | .get_link = ethtool_op_get_link, | 135 | .get_link = ethtool_op_get_link, |
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 51e9ce4907f..32266fb89c2 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -798,7 +798,7 @@ static void virtnet_vlan_rx_kill_vid(struct net_device *dev, u16 vid) | |||
798 | dev_warn(&dev->dev, "Failed to kill VLAN ID %d.\n", vid); | 798 | dev_warn(&dev->dev, "Failed to kill VLAN ID %d.\n", vid); |
799 | } | 799 | } |
800 | 800 | ||
801 | static struct ethtool_ops virtnet_ethtool_ops = { | 801 | static const struct ethtool_ops virtnet_ethtool_ops = { |
802 | .set_tx_csum = virtnet_set_tx_csum, | 802 | .set_tx_csum = virtnet_set_tx_csum, |
803 | .set_sg = ethtool_op_set_sg, | 803 | .set_sg = ethtool_op_set_sg, |
804 | .set_tso = ethtool_op_set_tso, | 804 | .set_tso = ethtool_op_set_tso, |
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index 578c6978358..d3b69a4b4b5 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #include "defs.h" | 14 | #include "defs.h" |
15 | #include "hostcmd.h" | 15 | #include "hostcmd.h" |
16 | 16 | ||
17 | extern struct ethtool_ops lbs_ethtool_ops; | 17 | extern const struct ethtool_ops lbs_ethtool_ops; |
18 | 18 | ||
19 | #define MAX_BSSID_PER_CHANNEL 16 | 19 | #define MAX_BSSID_PER_CHANNEL 16 |
20 | 20 | ||
diff --git a/drivers/net/wireless/libertas/ethtool.c b/drivers/net/wireless/libertas/ethtool.c index b118a35ec60..039b555e4d7 100644 --- a/drivers/net/wireless/libertas/ethtool.c +++ b/drivers/net/wireless/libertas/ethtool.c | |||
@@ -183,7 +183,7 @@ static int lbs_ethtool_set_wol(struct net_device *dev, | |||
183 | return lbs_host_sleep_cfg(priv, criteria, (struct wol_config *)NULL); | 183 | return lbs_host_sleep_cfg(priv, criteria, (struct wol_config *)NULL); |
184 | } | 184 | } |
185 | 185 | ||
186 | struct ethtool_ops lbs_ethtool_ops = { | 186 | const struct ethtool_ops lbs_ethtool_ops = { |
187 | .get_drvinfo = lbs_ethtool_get_drvinfo, | 187 | .get_drvinfo = lbs_ethtool_get_drvinfo, |
188 | .get_eeprom = lbs_ethtool_get_eeprom, | 188 | .get_eeprom = lbs_ethtool_get_eeprom, |
189 | .get_eeprom_len = lbs_ethtool_get_eeprom_len, | 189 | .get_eeprom_len = lbs_ethtool_get_eeprom_len, |
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 3700c49d76c..baa051d5bfb 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -51,7 +51,7 @@ | |||
51 | #include <xen/interface/memory.h> | 51 | #include <xen/interface/memory.h> |
52 | #include <xen/interface/grant_table.h> | 52 | #include <xen/interface/grant_table.h> |
53 | 53 | ||
54 | static struct ethtool_ops xennet_ethtool_ops; | 54 | static const struct ethtool_ops xennet_ethtool_ops; |
55 | 55 | ||
56 | struct netfront_cb { | 56 | struct netfront_cb { |
57 | struct page *page; | 57 | struct page *page; |
@@ -1627,7 +1627,7 @@ static void backend_changed(struct xenbus_device *dev, | |||
1627 | } | 1627 | } |
1628 | } | 1628 | } |
1629 | 1629 | ||
1630 | static struct ethtool_ops xennet_ethtool_ops = | 1630 | static const struct ethtool_ops xennet_ethtool_ops = |
1631 | { | 1631 | { |
1632 | .set_tx_csum = ethtool_op_set_tx_csum, | 1632 | .set_tx_csum = ethtool_op_set_tx_csum, |
1633 | .set_sg = xennet_set_sg, | 1633 | .set_sg = xennet_set_sg, |