diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-09-13 14:30:00 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-13 14:30:00 -0400 |
commit | 7282d491ecaee9883233a0e27283c4c79486279a (patch) | |
tree | 172ffa70716f5493db57976ceef7652120b3332f /drivers/net/8139too.c | |
parent | 76fd85937097a0c2ec8ab23bf21dc10992d1c398 (diff) |
drivers/net: const-ify ethtool_ops declarations
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/8139too.c')
-rw-r--r-- | drivers/net/8139too.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index 10301d3daa7..dbc5c0b1b96 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c | |||
@@ -639,7 +639,7 @@ static void __set_rx_mode (struct net_device *dev); | |||
639 | static void rtl8139_hw_start (struct net_device *dev); | 639 | static void rtl8139_hw_start (struct net_device *dev); |
640 | static void rtl8139_thread (void *_data); | 640 | static void rtl8139_thread (void *_data); |
641 | static void rtl8139_tx_timeout_task(void *_data); | 641 | static void rtl8139_tx_timeout_task(void *_data); |
642 | static struct ethtool_ops rtl8139_ethtool_ops; | 642 | static const struct ethtool_ops rtl8139_ethtool_ops; |
643 | 643 | ||
644 | /* write MMIO register, with flush */ | 644 | /* write MMIO register, with flush */ |
645 | /* Flush avoids rtl8139 bug w/ posted MMIO writes */ | 645 | /* Flush avoids rtl8139 bug w/ posted MMIO writes */ |
@@ -2446,7 +2446,7 @@ static void rtl8139_get_strings(struct net_device *dev, u32 stringset, u8 *data) | |||
2446 | memcpy(data, ethtool_stats_keys, sizeof(ethtool_stats_keys)); | 2446 | memcpy(data, ethtool_stats_keys, sizeof(ethtool_stats_keys)); |
2447 | } | 2447 | } |
2448 | 2448 | ||
2449 | static struct ethtool_ops rtl8139_ethtool_ops = { | 2449 | static const struct ethtool_ops rtl8139_ethtool_ops = { |
2450 | .get_drvinfo = rtl8139_get_drvinfo, | 2450 | .get_drvinfo = rtl8139_get_drvinfo, |
2451 | .get_settings = rtl8139_get_settings, | 2451 | .get_settings = rtl8139_get_settings, |
2452 | .set_settings = rtl8139_set_settings, | 2452 | .set_settings = rtl8139_set_settings, |