diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-04-14 01:50:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-15 00:53:42 -0400 |
commit | 6c8c2513c86c589a819c161c9abbdea2a3d56f5e (patch) | |
tree | 043371fbd07fce16159abf9d58cfd0df35b99268 /drivers/net/sfc/txc43128_phy.c | |
parent | 44f4d5a27ee63ec80d498e0d0673605d5ce1427d (diff) |
sfc: make function tables const
The phy, mac, and board information structures should be const.
Since tables contain function pointer this improves security
(at least theoretically).
Compile tested only.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/txc43128_phy.c')
-rw-r--r-- | drivers/net/sfc/txc43128_phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/txc43128_phy.c b/drivers/net/sfc/txc43128_phy.c index d9886addcc99..7c21b334a75b 100644 --- a/drivers/net/sfc/txc43128_phy.c +++ b/drivers/net/sfc/txc43128_phy.c | |||
@@ -545,7 +545,7 @@ static void txc43128_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd) | |||
545 | mdio45_ethtool_gset(&efx->mdio, ecmd); | 545 | mdio45_ethtool_gset(&efx->mdio, ecmd); |
546 | } | 546 | } |
547 | 547 | ||
548 | struct efx_phy_operations falcon_txc_phy_ops = { | 548 | const struct efx_phy_operations falcon_txc_phy_ops = { |
549 | .probe = txc43128_phy_probe, | 549 | .probe = txc43128_phy_probe, |
550 | .init = txc43128_phy_init, | 550 | .init = txc43128_phy_init, |
551 | .reconfigure = txc43128_phy_reconfigure, | 551 | .reconfigure = txc43128_phy_reconfigure, |