You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
drivers/net: const-ify ethtool_ops declarations
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
+1
-1
@@ -881,7 +881,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level)
|
||||
debug = level;
|
||||
}
|
||||
|
||||
static struct ethtool_ops netdev_ethtool_ops = {
|
||||
static const struct ethtool_ops netdev_ethtool_ops = {
|
||||
.get_drvinfo = netdev_get_drvinfo,
|
||||
.get_msglevel = netdev_get_msglevel,
|
||||
.set_msglevel = netdev_set_msglevel,
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ static void el_reset(struct net_device *dev);
|
||||
static int el1_close(struct net_device *dev);
|
||||
static struct net_device_stats *el1_get_stats(struct net_device *dev);
|
||||
static void set_multicast_list(struct net_device *dev);
|
||||
static struct ethtool_ops netdev_ethtool_ops;
|
||||
static const struct ethtool_ops netdev_ethtool_ops;
|
||||
|
||||
#define EL1_IO_EXTENT 16
|
||||
|
||||
|
||||
+2
-2
@@ -79,7 +79,7 @@ static void el2_block_input(struct net_device *dev, int count, struct sk_buff *s
|
||||
int ring_offset);
|
||||
static void el2_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
|
||||
int ring_page);
|
||||
static struct ethtool_ops netdev_ethtool_ops;
|
||||
static const struct ethtool_ops netdev_ethtool_ops;
|
||||
|
||||
|
||||
/* This routine probes for a memory-mapped 3c503 board by looking for
|
||||
@@ -666,7 +666,7 @@ static void netdev_get_drvinfo(struct net_device *dev,
|
||||
sprintf(info->bus_info, "ISA 0x%lx", dev->base_addr);
|
||||
}
|
||||
|
||||
static struct ethtool_ops netdev_ethtool_ops = {
|
||||
static const struct ethtool_ops netdev_ethtool_ops = {
|
||||
.get_drvinfo = netdev_get_drvinfo,
|
||||
};
|
||||
|
||||
|
||||
+1
-1
@@ -1169,7 +1169,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level)
|
||||
debug = level;
|
||||
}
|
||||
|
||||
static struct ethtool_ops netdev_ethtool_ops = {
|
||||
static const struct ethtool_ops netdev_ethtool_ops = {
|
||||
.get_drvinfo = netdev_get_drvinfo,
|
||||
.get_msglevel = netdev_get_msglevel,
|
||||
.set_msglevel = netdev_set_msglevel,
|
||||
|
||||
+2
-2
@@ -294,7 +294,7 @@ static void el16_tx_timeout (struct net_device *dev);
|
||||
|
||||
static void hardware_send_packet(struct net_device *dev, void *buf, short length, short pad);
|
||||
static void init_82586_mem(struct net_device *dev);
|
||||
static struct ethtool_ops netdev_ethtool_ops;
|
||||
static const struct ethtool_ops netdev_ethtool_ops;
|
||||
static void init_rx_bufs(struct net_device *);
|
||||
|
||||
static int io = 0x300;
|
||||
@@ -919,7 +919,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level)
|
||||
debug = level;
|
||||
}
|
||||
|
||||
static struct ethtool_ops netdev_ethtool_ops = {
|
||||
static const struct ethtool_ops netdev_ethtool_ops = {
|
||||
.get_drvinfo = netdev_get_drvinfo,
|
||||
.get_msglevel = netdev_get_msglevel,
|
||||
.set_msglevel = netdev_set_msglevel,
|
||||
|
||||
+2
-2
@@ -200,7 +200,7 @@ static void set_multicast_list(struct net_device *dev);
|
||||
static void el3_tx_timeout (struct net_device *dev);
|
||||
static void el3_down(struct net_device *dev);
|
||||
static void el3_up(struct net_device *dev);
|
||||
static struct ethtool_ops ethtool_ops;
|
||||
static const struct ethtool_ops ethtool_ops;
|
||||
#ifdef EL3_SUSPEND
|
||||
static int el3_suspend(struct device *, pm_message_t);
|
||||
static int el3_resume(struct device *);
|
||||
@@ -1349,7 +1349,7 @@ static void el3_set_msglevel(struct net_device *dev, u32 v)
|
||||
el3_debug = v;
|
||||
}
|
||||
|
||||
static struct ethtool_ops ethtool_ops = {
|
||||
static const struct ethtool_ops ethtool_ops = {
|
||||
.get_drvinfo = el3_get_drvinfo,
|
||||
.get_settings = el3_get_settings,
|
||||
.set_settings = el3_set_settings,
|
||||
|
||||
+2
-2
@@ -379,7 +379,7 @@ static int corkscrew_close(struct net_device *dev);
|
||||
static void update_stats(int addr, struct net_device *dev);
|
||||
static struct net_device_stats *corkscrew_get_stats(struct net_device *dev);
|
||||
static void set_rx_mode(struct net_device *dev);
|
||||
static struct ethtool_ops netdev_ethtool_ops;
|
||||
static const struct ethtool_ops netdev_ethtool_ops;
|
||||
|
||||
|
||||
/*
|
||||
@@ -1561,7 +1561,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level)
|
||||
corkscrew_debug = level;
|
||||
}
|
||||
|
||||
static struct ethtool_ops netdev_ethtool_ops = {
|
||||
static const struct ethtool_ops netdev_ethtool_ops = {
|
||||
.get_drvinfo = netdev_get_drvinfo,
|
||||
.get_msglevel = netdev_get_msglevel,
|
||||
.set_msglevel = netdev_set_msglevel,
|
||||
|
||||
+2
-2
@@ -189,7 +189,7 @@ static void elmc_timeout(struct net_device *dev);
|
||||
#ifdef ELMC_MULTICAST
|
||||
static void set_multicast_list(struct net_device *dev);
|
||||
#endif
|
||||
static struct ethtool_ops netdev_ethtool_ops;
|
||||
static const struct ethtool_ops netdev_ethtool_ops;
|
||||
|
||||
/* helper-functions */
|
||||
static int init586(struct net_device *dev);
|
||||
@@ -1259,7 +1259,7 @@ static void netdev_get_drvinfo(struct net_device *dev,
|
||||
sprintf(info->bus_info, "MCA 0x%lx", dev->base_addr);
|
||||
}
|
||||
|
||||
static struct ethtool_ops netdev_ethtool_ops = {
|
||||
static const struct ethtool_ops netdev_ethtool_ops = {
|
||||
.get_drvinfo = netdev_get_drvinfo,
|
||||
};
|
||||
|
||||
|
||||
+2
-2
@@ -222,7 +222,7 @@ static int mc32_close(struct net_device *dev);
|
||||
static struct net_device_stats *mc32_get_stats(struct net_device *dev);
|
||||
static void mc32_set_multicast_list(struct net_device *dev);
|
||||
static void mc32_reset_multicast_list(struct net_device *dev);
|
||||
static struct ethtool_ops netdev_ethtool_ops;
|
||||
static const struct ethtool_ops netdev_ethtool_ops;
|
||||
|
||||
static void cleanup_card(struct net_device *dev)
|
||||
{
|
||||
@@ -1627,7 +1627,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level)
|
||||
mc32_debug = level;
|
||||
}
|
||||
|
||||
static struct ethtool_ops netdev_ethtool_ops = {
|
||||
static const struct ethtool_ops netdev_ethtool_ops = {
|
||||
.get_drvinfo = netdev_get_drvinfo,
|
||||
.get_msglevel = netdev_get_msglevel,
|
||||
.set_msglevel = netdev_set_msglevel,
|
||||
|
||||
+2
-2
@@ -729,7 +729,7 @@ static int vortex_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
|
||||
#endif
|
||||
static void vortex_tx_timeout(struct net_device *dev);
|
||||
static void acpi_set_WOL(struct net_device *dev);
|
||||
static struct ethtool_ops vortex_ethtool_ops;
|
||||
static const struct ethtool_ops vortex_ethtool_ops;
|
||||
static void set_8021q_mode(struct net_device *dev, int enable);
|
||||
|
||||
/* This driver uses 'options' to pass the media type, full-duplex flag, etc. */
|
||||
@@ -2873,7 +2873,7 @@ static void vortex_get_drvinfo(struct net_device *dev,
|
||||
}
|
||||
}
|
||||
|
||||
static struct ethtool_ops vortex_ethtool_ops = {
|
||||
static const struct ethtool_ops vortex_ethtool_ops = {
|
||||
.get_drvinfo = vortex_get_drvinfo,
|
||||
.get_strings = vortex_get_strings,
|
||||
.get_msglevel = vortex_get_msglevel,
|
||||
|
||||
@@ -1546,7 +1546,7 @@ static void cp_get_ethtool_stats (struct net_device *dev,
|
||||
pci_free_consistent(cp->pdev, sizeof(*nic_stats), nic_stats, dma);
|
||||
}
|
||||
|
||||
static struct ethtool_ops cp_ethtool_ops = {
|
||||
static const struct ethtool_ops cp_ethtool_ops = {
|
||||
.get_drvinfo = cp_get_drvinfo,
|
||||
.get_regs_len = cp_get_regs_len,
|
||||
.get_stats_count = cp_get_stats_count,
|
||||
|
||||
@@ -639,7 +639,7 @@ static void __set_rx_mode (struct net_device *dev);
|
||||
static void rtl8139_hw_start (struct net_device *dev);
|
||||
static void rtl8139_thread (void *_data);
|
||||
static void rtl8139_tx_timeout_task(void *_data);
|
||||
static struct ethtool_ops rtl8139_ethtool_ops;
|
||||
static const struct ethtool_ops rtl8139_ethtool_ops;
|
||||
|
||||
/* write MMIO register, with flush */
|
||||
/* 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)
|
||||
memcpy(data, ethtool_stats_keys, sizeof(ethtool_stats_keys));
|
||||
}
|
||||
|
||||
static struct ethtool_ops rtl8139_ethtool_ops = {
|
||||
static const struct ethtool_ops rtl8139_ethtool_ops = {
|
||||
.get_drvinfo = rtl8139_get_drvinfo,
|
||||
.get_settings = rtl8139_get_settings,
|
||||
.set_settings = rtl8139_set_settings,
|
||||
|
||||
@@ -451,7 +451,7 @@ static int ace_get_settings(struct net_device *, struct ethtool_cmd *);
|
||||
static int ace_set_settings(struct net_device *, struct ethtool_cmd *);
|
||||
static void ace_get_drvinfo(struct net_device *, struct ethtool_drvinfo *);
|
||||
|
||||
static struct ethtool_ops ace_ethtool_ops = {
|
||||
static const struct ethtool_ops ace_ethtool_ops = {
|
||||
.get_settings = ace_get_settings,
|
||||
.set_settings = ace_set_settings,
|
||||
.get_drvinfo = ace_get_drvinfo,
|
||||
|
||||
@@ -1645,7 +1645,7 @@ static int amd8111e_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol_
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct ethtool_ops ops = {
|
||||
static const struct ethtool_ops ops = {
|
||||
.get_drvinfo = amd8111e_get_drvinfo,
|
||||
.get_regs_len = amd8111e_get_regs_len,
|
||||
.get_regs = amd8111e_get_regs,
|
||||
|
||||
@@ -648,7 +648,7 @@ static void at91ether_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo
|
||||
strlcpy(info->bus_info, dev->class_dev.dev->bus_id, sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
static struct ethtool_ops at91ether_ethtool_ops = {
|
||||
static const struct ethtool_ops at91ether_ethtool_ops = {
|
||||
.get_settings = at91ether_get_settings,
|
||||
.set_settings = at91ether_set_settings,
|
||||
.get_drvinfo = at91ether_get_drvinfo,
|
||||
|
||||
@@ -626,7 +626,7 @@ static int etherh_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct ethtool_ops etherh_ethtool_ops = {
|
||||
static const struct ethtool_ops etherh_ethtool_ops = {
|
||||
.get_settings = etherh_get_settings,
|
||||
.set_settings = etherh_set_settings,
|
||||
.get_drvinfo = etherh_get_drvinfo,
|
||||
|
||||
@@ -608,7 +608,7 @@ au1000_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
|
||||
info->regdump_len = 0;
|
||||
}
|
||||
|
||||
static struct ethtool_ops au1000_ethtool_ops = {
|
||||
static const struct ethtool_ops au1000_ethtool_ops = {
|
||||
.get_settings = au1000_get_settings,
|
||||
.set_settings = au1000_set_settings,
|
||||
.get_drvinfo = au1000_get_drvinfo,
|
||||
|
||||
+1
-1
@@ -2012,7 +2012,7 @@ static int b44_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct ethtool_ops b44_ethtool_ops = {
|
||||
static const struct ethtool_ops b44_ethtool_ops = {
|
||||
.get_drvinfo = b44_get_drvinfo,
|
||||
.get_settings = b44_get_settings,
|
||||
.set_settings = b44_set_settings,
|
||||
|
||||
+1
-1
@@ -5429,7 +5429,7 @@ bnx2_phys_id(struct net_device *dev, u32 data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct ethtool_ops bnx2_ethtool_ops = {
|
||||
static const struct ethtool_ops bnx2_ethtool_ops = {
|
||||
.get_settings = bnx2_get_settings,
|
||||
.set_settings = bnx2_set_settings,
|
||||
.get_drvinfo = bnx2_get_drvinfo,
|
||||
|
||||
@@ -4130,7 +4130,7 @@ static void bond_ethtool_get_drvinfo(struct net_device *bond_dev,
|
||||
snprintf(drvinfo->fw_version, 32, "%d", BOND_ABI_VERSION);
|
||||
}
|
||||
|
||||
static struct ethtool_ops bond_ethtool_ops = {
|
||||
static const struct ethtool_ops bond_ethtool_ops = {
|
||||
.get_tx_csum = ethtool_op_get_tx_csum,
|
||||
.get_tso = ethtool_op_get_tso,
|
||||
.get_ufo = ethtool_op_get_ufo,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user