aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fec_8xx
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-09-13 14:30:00 -0400
committerJeff Garzik <jeff@garzik.org>2006-09-13 14:30:00 -0400
commit7282d491ecaee9883233a0e27283c4c79486279a (patch)
tree172ffa70716f5493db57976ceef7652120b3332f /drivers/net/fec_8xx
parent76fd85937097a0c2ec8ab23bf21dc10992d1c398 (diff)
drivers/net: const-ify ethtool_ops declarations
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/fec_8xx')
-rw-r--r--drivers/net/fec_8xx/fec_main.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/fec_8xx/fec_main.c b/drivers/net/fec_8xx/fec_main.c
index 282b1452c39a..22ac2df1aeb0 100644
--- a/drivers/net/fec_8xx/fec_main.c
+++ b/drivers/net/fec_8xx/fec_main.c
@@ -1034,20 +1034,20 @@ static void fec_set_msglevel(struct net_device *dev, __u32 value)
1034 fep->msg_enable = value; 1034 fep->msg_enable = value;
1035} 1035}
1036 1036
1037static struct ethtool_ops fec_ethtool_ops = { 1037static const struct ethtool_ops fec_ethtool_ops = {
1038 .get_drvinfo = fec_get_drvinfo, 1038 .get_drvinfo = fec_get_drvinfo,
1039 .get_regs_len = fec_get_regs_len, 1039 .get_regs_len = fec_get_regs_len,
1040 .get_settings = fec_get_settings, 1040 .get_settings = fec_get_settings,
1041 .set_settings = fec_set_settings, 1041 .set_settings = fec_set_settings,
1042 .nway_reset = fec_nway_reset, 1042 .nway_reset = fec_nway_reset,
1043 .get_link = ethtool_op_get_link, 1043 .get_link = ethtool_op_get_link,
1044 .get_msglevel = fec_get_msglevel, 1044 .get_msglevel = fec_get_msglevel,
1045 .set_msglevel = fec_set_msglevel, 1045 .set_msglevel = fec_set_msglevel,
1046 .get_tx_csum = ethtool_op_get_tx_csum, 1046 .get_tx_csum = ethtool_op_get_tx_csum,
1047 .set_tx_csum = ethtool_op_set_tx_csum, /* local! */ 1047 .set_tx_csum = ethtool_op_set_tx_csum, /* local! */
1048 .get_sg = ethtool_op_get_sg, 1048 .get_sg = ethtool_op_get_sg,
1049 .set_sg = ethtool_op_set_sg, 1049 .set_sg = ethtool_op_set_sg,
1050 .get_regs = fec_get_regs, 1050 .get_regs = fec_get_regs,
1051}; 1051};
1052 1052
1053static int fec_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) 1053static int fec_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)