diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-09-24 09:23:52 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-10-05 05:52:21 -0400 |
commit | 8ce9d6c725b01989d2b18ee1df853837388ceaf6 (patch) | |
tree | 54b38c8b3824b1babc2cb2c824a3455822660ec5 /drivers/net/ethernet/intel/e1000e/e1000.h | |
parent | 70f14381299984f05764c3188f1706288285c953 (diff) |
e1000e: make function tables const
The initial function and setup tables can be marked as constant.
Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/e1000.h')
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/e1000.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h index 1b15d1ff583c..7877b9c26edb 100644 --- a/drivers/net/ethernet/intel/e1000e/e1000.h +++ b/drivers/net/ethernet/intel/e1000e/e1000.h | |||
@@ -406,9 +406,9 @@ struct e1000_info { | |||
406 | u32 pba; | 406 | u32 pba; |
407 | u32 max_hw_frame_size; | 407 | u32 max_hw_frame_size; |
408 | s32 (*get_variants)(struct e1000_adapter *); | 408 | s32 (*get_variants)(struct e1000_adapter *); |
409 | struct e1000_mac_operations *mac_ops; | 409 | const struct e1000_mac_operations *mac_ops; |
410 | struct e1000_phy_operations *phy_ops; | 410 | const struct e1000_phy_operations *phy_ops; |
411 | struct e1000_nvm_operations *nvm_ops; | 411 | const struct e1000_nvm_operations *nvm_ops; |
412 | }; | 412 | }; |
413 | 413 | ||
414 | /* hardware capability, feature, and workaround flags */ | 414 | /* hardware capability, feature, and workaround flags */ |
@@ -506,17 +506,17 @@ extern unsigned int copybreak; | |||
506 | 506 | ||
507 | extern char *e1000e_get_hw_dev_name(struct e1000_hw *hw); | 507 | extern char *e1000e_get_hw_dev_name(struct e1000_hw *hw); |
508 | 508 | ||
509 | extern struct e1000_info e1000_82571_info; | 509 | extern const struct e1000_info e1000_82571_info; |
510 | extern struct e1000_info e1000_82572_info; | 510 | extern const struct e1000_info e1000_82572_info; |
511 | extern struct e1000_info e1000_82573_info; | 511 | extern const struct e1000_info e1000_82573_info; |
512 | extern struct e1000_info e1000_82574_info; | 512 | extern const struct e1000_info e1000_82574_info; |
513 | extern struct e1000_info e1000_82583_info; | 513 | extern const struct e1000_info e1000_82583_info; |
514 | extern struct e1000_info e1000_ich8_info; | 514 | extern const struct e1000_info e1000_ich8_info; |
515 | extern struct e1000_info e1000_ich9_info; | 515 | extern const struct e1000_info e1000_ich9_info; |
516 | extern struct e1000_info e1000_ich10_info; | 516 | extern const struct e1000_info e1000_ich10_info; |
517 | extern struct e1000_info e1000_pch_info; | 517 | extern const struct e1000_info e1000_pch_info; |
518 | extern struct e1000_info e1000_pch2_info; | 518 | extern const struct e1000_info e1000_pch2_info; |
519 | extern struct e1000_info e1000_es2_info; | 519 | extern const struct e1000_info e1000_es2_info; |
520 | 520 | ||
521 | extern s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num, | 521 | extern s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num, |
522 | u32 pba_num_size); | 522 | u32 pba_num_size); |