brcm80211: make ethtool_ops const
All usage of ethtool_ops should be const; also add comma at end of initializer list. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
34c5cf205e
commit
3eb1fa7e00
@@ -590,8 +590,8 @@ static void brcmf_ethtool_get_drvinfo(struct net_device *ndev,
|
|||||||
sprintf(info->bus_info, "%s", dev_name(drvr->dev));
|
sprintf(info->bus_info, "%s", dev_name(drvr->dev));
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct ethtool_ops brcmf_ethtool_ops = {
|
static const struct ethtool_ops brcmf_ethtool_ops = {
|
||||||
.get_drvinfo = brcmf_ethtool_get_drvinfo
|
.get_drvinfo = brcmf_ethtool_get_drvinfo,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int brcmf_ethtool(struct brcmf_pub *drvr, void __user *uaddr)
|
static int brcmf_ethtool(struct brcmf_pub *drvr, void __user *uaddr)
|
||||||
|
Reference in New Issue
Block a user