aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/stmmac/stmmac.h
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2010-10-13 14:51:25 +0000
committerDavid S. Miller <davem@davemloft.net>2010-10-16 11:13:25 -0700
commitcadb7924b10b2a3117dafe14d6d6d28035ec4ddb (patch)
treed0f233d5868f2cde80bf60c13b390182f98894ea /drivers/net/stmmac/stmmac.h
parentstmmac: make ethtool functions local (diff)
downloadlinux-dev-cadb7924b10b2a3117dafe14d6d6d28035ec4ddb.tar.xz
linux-dev-cadb7924b10b2a3117dafe14d6d6d28035ec4ddb.zip
stmmac: make function tables const
These tables only contain function pointers. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Gustavo F. Padovan <padovan@profusion.mobi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/stmmac/stmmac.h')
-rw-r--r--drivers/net/stmmac/stmmac.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/stmmac/stmmac.h b/drivers/net/stmmac/stmmac.h
index 92154ff7d702..79bdc2e13224 100644
--- a/drivers/net/stmmac/stmmac.h
+++ b/drivers/net/stmmac/stmmac.h
@@ -121,5 +121,5 @@ static inline int stmmac_claim_resource(struct platform_device *pdev)
extern int stmmac_mdio_unregister(struct net_device *ndev);
extern int stmmac_mdio_register(struct net_device *ndev);
extern void stmmac_set_ethtool_ops(struct net_device *netdev);
-extern struct stmmac_desc_ops enh_desc_ops;
-extern struct stmmac_desc_ops ndesc_ops;
+extern const struct stmmac_desc_ops enh_desc_ops;
+extern const struct stmmac_desc_ops ndesc_ops;