diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-13 10:51:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-16 14:13:25 -0400 |
commit | cadb7924b10b2a3117dafe14d6d6d28035ec4ddb (patch) | |
tree | d0f233d5868f2cde80bf60c13b390182f98894ea /drivers/net/stmmac/common.h | |
parent | 8ee17ae68c0f1e281a432a4318fa2511e25c9492 (diff) |
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/common.h')
-rw-r--r-- | drivers/net/stmmac/common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/stmmac/common.h b/drivers/net/stmmac/common.h index dec7ce40c27a..375ea193e139 100644 --- a/drivers/net/stmmac/common.h +++ b/drivers/net/stmmac/common.h | |||
@@ -235,9 +235,9 @@ struct mii_regs { | |||
235 | }; | 235 | }; |
236 | 236 | ||
237 | struct mac_device_info { | 237 | struct mac_device_info { |
238 | struct stmmac_ops *mac; | 238 | const struct stmmac_ops *mac; |
239 | struct stmmac_desc_ops *desc; | 239 | const struct stmmac_desc_ops *desc; |
240 | struct stmmac_dma_ops *dma; | 240 | const struct stmmac_dma_ops *dma; |
241 | struct mii_regs mii; /* MII register Addresses */ | 241 | struct mii_regs mii; /* MII register Addresses */ |
242 | struct mac_link link; | 242 | struct mac_link link; |
243 | }; | 243 | }; |