diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2016-01-03 01:44:56 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-02-24 18:11:07 -0500 |
commit | 5b70e4a12a525b5f3d4a3e3f0567ed877195b187 (patch) | |
tree | 532c62bab168476430016226706d57185320837a /drivers/net/ethernet/intel/igb | |
parent | b72f3f72005dfd649d787535bd04ada3b3f1b3ba (diff) |
igb: constify e1000_phy_operations structure
This e1000_phy_operations structure is never modified, so declare it as
const. Other structures of this type are already const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igb')
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_82575.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/e1000_hw.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c index 9a1a9c7b0748..a23aa6704394 100644 --- a/drivers/net/ethernet/intel/igb/e1000_82575.c +++ b/drivers/net/ethernet/intel/igb/e1000_82575.c | |||
@@ -2920,7 +2920,7 @@ static struct e1000_mac_operations e1000_mac_ops_82575 = { | |||
2920 | #endif | 2920 | #endif |
2921 | }; | 2921 | }; |
2922 | 2922 | ||
2923 | static struct e1000_phy_operations e1000_phy_ops_82575 = { | 2923 | static const struct e1000_phy_operations e1000_phy_ops_82575 = { |
2924 | .acquire = igb_acquire_phy_82575, | 2924 | .acquire = igb_acquire_phy_82575, |
2925 | .get_cfg_done = igb_get_cfg_done_82575, | 2925 | .get_cfg_done = igb_get_cfg_done_82575, |
2926 | .release = igb_release_phy_82575, | 2926 | .release = igb_release_phy_82575, |
diff --git a/drivers/net/ethernet/intel/igb/e1000_hw.h b/drivers/net/ethernet/intel/igb/e1000_hw.h index f0c416e21d2c..2fb2213cd562 100644 --- a/drivers/net/ethernet/intel/igb/e1000_hw.h +++ b/drivers/net/ethernet/intel/igb/e1000_hw.h | |||
@@ -372,7 +372,7 @@ struct e1000_thermal_sensor_data { | |||
372 | struct e1000_info { | 372 | struct e1000_info { |
373 | s32 (*get_invariants)(struct e1000_hw *); | 373 | s32 (*get_invariants)(struct e1000_hw *); |
374 | struct e1000_mac_operations *mac_ops; | 374 | struct e1000_mac_operations *mac_ops; |
375 | struct e1000_phy_operations *phy_ops; | 375 | const struct e1000_phy_operations *phy_ops; |
376 | struct e1000_nvm_operations *nvm_ops; | 376 | struct e1000_nvm_operations *nvm_ops; |
377 | }; | 377 | }; |
378 | 378 | ||