aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/qt202x_phy.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2011-04-14 01:50:12 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-15 00:53:42 -0400
commit6c8c2513c86c589a819c161c9abbdea2a3d56f5e (patch)
tree043371fbd07fce16159abf9d58cfd0df35b99268 /drivers/net/sfc/qt202x_phy.c
parent44f4d5a27ee63ec80d498e0d0673605d5ce1427d (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/qt202x_phy.c')
-rw-r--r--drivers/net/sfc/qt202x_phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sfc/qt202x_phy.c b/drivers/net/sfc/qt202x_phy.c
index 55f90924247..7ad97e39740 100644
--- a/drivers/net/sfc/qt202x_phy.c
+++ b/drivers/net/sfc/qt202x_phy.c
@@ -449,7 +449,7 @@ static void qt202x_phy_remove(struct efx_nic *efx)
449 efx->phy_data = NULL; 449 efx->phy_data = NULL;
450} 450}
451 451
452struct efx_phy_operations falcon_qt202x_phy_ops = { 452const struct efx_phy_operations falcon_qt202x_phy_ops = {
453 .probe = qt202x_phy_probe, 453 .probe = qt202x_phy_probe,
454 .init = qt202x_phy_init, 454 .init = qt202x_phy_init,
455 .reconfigure = qt202x_phy_reconfigure, 455 .reconfigure = qt202x_phy_reconfigure,