diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-09-02 04:03:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-02 04:03:33 -0400 |
commit | 0fc0b732eaa38beb93a6fb62f77c7bd9622c76ec (patch) | |
tree | 2423b134116c16f027ebeae7954c098f27d6e619 /drivers/s390/net | |
parent | daf09de817353f18bb81a23a023d429cfd258e62 (diff) |
netdev: drivers should make ethtool_ops const
No need to put ethtool_ops in data, they should be const.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 4 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index 12ee7a35ca59..94b161121c26 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c | |||
@@ -863,7 +863,7 @@ static void qeth_l2_remove_device(struct ccwgroup_device *cgdev) | |||
863 | return; | 863 | return; |
864 | } | 864 | } |
865 | 865 | ||
866 | static struct ethtool_ops qeth_l2_ethtool_ops = { | 866 | static const struct ethtool_ops qeth_l2_ethtool_ops = { |
867 | .get_link = ethtool_op_get_link, | 867 | .get_link = ethtool_op_get_link, |
868 | .get_strings = qeth_core_get_strings, | 868 | .get_strings = qeth_core_get_strings, |
869 | .get_ethtool_stats = qeth_core_get_ethtool_stats, | 869 | .get_ethtool_stats = qeth_core_get_ethtool_stats, |
@@ -872,7 +872,7 @@ static struct ethtool_ops qeth_l2_ethtool_ops = { | |||
872 | .get_settings = qeth_core_ethtool_get_settings, | 872 | .get_settings = qeth_core_ethtool_get_settings, |
873 | }; | 873 | }; |
874 | 874 | ||
875 | static struct ethtool_ops qeth_l2_osn_ops = { | 875 | static const struct ethtool_ops qeth_l2_osn_ops = { |
876 | .get_strings = qeth_core_get_strings, | 876 | .get_strings = qeth_core_get_strings, |
877 | .get_ethtool_stats = qeth_core_get_ethtool_stats, | 877 | .get_ethtool_stats = qeth_core_get_ethtool_stats, |
878 | .get_stats_count = qeth_core_get_stats_count, | 878 | .get_stats_count = qeth_core_get_stats_count, |
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index d9fabe30c0da..115b4a0dae6e 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -2946,7 +2946,7 @@ static int qeth_l3_ethtool_set_tso(struct net_device *dev, u32 data) | |||
2946 | return 0; | 2946 | return 0; |
2947 | } | 2947 | } |
2948 | 2948 | ||
2949 | static struct ethtool_ops qeth_l3_ethtool_ops = { | 2949 | static const struct ethtool_ops qeth_l3_ethtool_ops = { |
2950 | .get_link = ethtool_op_get_link, | 2950 | .get_link = ethtool_op_get_link, |
2951 | .get_tx_csum = ethtool_op_get_tx_csum, | 2951 | .get_tx_csum = ethtool_op_get_tx_csum, |
2952 | .set_tx_csum = ethtool_op_set_tx_hw_csum, | 2952 | .set_tx_csum = ethtool_op_set_tx_hw_csum, |