drivers/net: const-ify ethtool_ops declarations
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
@@ -44,7 +44,7 @@ static void bcm43xx_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *
|
||||
strncpy(info->bus_info, pci_name(bcm->pci_dev), ETHTOOL_BUSINFO_LEN);
|
||||
}
|
||||
|
||||
struct ethtool_ops bcm43xx_ethtool_ops = {
|
||||
const struct ethtool_ops bcm43xx_ethtool_ops = {
|
||||
.get_drvinfo = bcm43xx_get_drvinfo,
|
||||
.get_link = ethtool_op_get_link,
|
||||
};
|
||||
|
@@ -3,6 +3,6 @@
|
||||
|
||||
#include <linux/ethtool.h>
|
||||
|
||||
extern struct ethtool_ops bcm43xx_ethtool_ops;
|
||||
extern const struct ethtool_ops bcm43xx_ethtool_ops;
|
||||
|
||||
#endif /* BCM43xx_ETHTOOL_H_ */
|
||||
|
Reference in New Issue
Block a user