mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
netdev: drivers should make ethtool_ops const
No need to put ethtool_ops in data, they should be const. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
daf09de817
commit
0fc0b732ea
50 changed files with 54 additions and 54 deletions
|
|
@ -173,7 +173,7 @@ static netdev_tx_t ether1394_tx(struct sk_buff *skb,
|
|||
struct net_device *dev);
|
||||
static void ether1394_iso(struct hpsb_iso *iso);
|
||||
|
||||
static struct ethtool_ops ethtool_ops;
|
||||
static const struct ethtool_ops ethtool_ops;
|
||||
|
||||
static int ether1394_write(struct hpsb_host *host, int srcid, int destid,
|
||||
quadlet_t *data, u64 addr, size_t len, u16 flags);
|
||||
|
|
@ -1706,7 +1706,7 @@ static void ether1394_get_drvinfo(struct net_device *dev,
|
|||
strcpy(info->bus_info, "ieee1394"); /* FIXME provide more detail? */
|
||||
}
|
||||
|
||||
static struct ethtool_ops ethtool_ops = {
|
||||
static const struct ethtool_ops ethtool_ops = {
|
||||
.get_drvinfo = ether1394_get_drvinfo
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue