aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/e1000e/ich8lan.c
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-09-24 09:23:52 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-10-05 05:52:21 -0400
commit8ce9d6c725b01989d2b18ee1df853837388ceaf6 (patch)
tree54b38c8b3824b1babc2cb2c824a3455822660ec5 /drivers/net/ethernet/intel/e1000e/ich8lan.c
parent70f14381299984f05764c3188f1706288285c953 (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/ich8lan.c')
-rw-r--r--drivers/net/ethernet/intel/e1000e/ich8lan.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c b/drivers/net/ethernet/intel/e1000e/ich8lan.c
index 3fc3acce9950..3b063e1ac835 100644
--- a/drivers/net/ethernet/intel/e1000e/ich8lan.c
+++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c
@@ -4011,7 +4011,7 @@ release:
4011 } 4011 }
4012} 4012}
4013 4013
4014static struct e1000_mac_operations ich8_mac_ops = { 4014static const struct e1000_mac_operations ich8_mac_ops = {
4015 .id_led_init = e1000e_id_led_init, 4015 .id_led_init = e1000e_id_led_init,
4016 /* check_mng_mode dependent on mac type */ 4016 /* check_mng_mode dependent on mac type */
4017 .check_for_link = e1000_check_for_copper_link_ich8lan, 4017 .check_for_link = e1000_check_for_copper_link_ich8lan,
@@ -4030,7 +4030,7 @@ static struct e1000_mac_operations ich8_mac_ops = {
4030 /* id_led_init dependent on mac type */ 4030 /* id_led_init dependent on mac type */
4031}; 4031};
4032 4032
4033static struct e1000_phy_operations ich8_phy_ops = { 4033static const struct e1000_phy_operations ich8_phy_ops = {
4034 .acquire = e1000_acquire_swflag_ich8lan, 4034 .acquire = e1000_acquire_swflag_ich8lan,
4035 .check_reset_block = e1000_check_reset_block_ich8lan, 4035 .check_reset_block = e1000_check_reset_block_ich8lan,
4036 .commit = NULL, 4036 .commit = NULL,
@@ -4044,7 +4044,7 @@ static struct e1000_phy_operations ich8_phy_ops = {
4044 .write_reg = e1000e_write_phy_reg_igp, 4044 .write_reg = e1000e_write_phy_reg_igp,
4045}; 4045};
4046 4046
4047static struct e1000_nvm_operations ich8_nvm_ops = { 4047static const struct e1000_nvm_operations ich8_nvm_ops = {
4048 .acquire = e1000_acquire_nvm_ich8lan, 4048 .acquire = e1000_acquire_nvm_ich8lan,
4049 .read = e1000_read_nvm_ich8lan, 4049 .read = e1000_read_nvm_ich8lan,
4050 .release = e1000_release_nvm_ich8lan, 4050 .release = e1000_release_nvm_ich8lan,
@@ -4054,7 +4054,7 @@ static struct e1000_nvm_operations ich8_nvm_ops = {
4054 .write = e1000_write_nvm_ich8lan, 4054 .write = e1000_write_nvm_ich8lan,
4055}; 4055};
4056 4056
4057struct e1000_info e1000_ich8_info = { 4057const struct e1000_info e1000_ich8_info = {
4058 .mac = e1000_ich8lan, 4058 .mac = e1000_ich8lan,
4059 .flags = FLAG_HAS_WOL 4059 .flags = FLAG_HAS_WOL
4060 | FLAG_IS_ICH 4060 | FLAG_IS_ICH
@@ -4070,7 +4070,7 @@ struct e1000_info e1000_ich8_info = {
4070 .nvm_ops = &ich8_nvm_ops, 4070 .nvm_ops = &ich8_nvm_ops,
4071}; 4071};
4072 4072
4073struct e1000_info e1000_ich9_info = { 4073const struct e1000_info e1000_ich9_info = {
4074 .mac = e1000_ich9lan, 4074 .mac = e1000_ich9lan,
4075 .flags = FLAG_HAS_JUMBO_FRAMES 4075 .flags = FLAG_HAS_JUMBO_FRAMES
4076 | FLAG_IS_ICH 4076 | FLAG_IS_ICH
@@ -4088,7 +4088,7 @@ struct e1000_info e1000_ich9_info = {
4088 .nvm_ops = &ich8_nvm_ops, 4088 .nvm_ops = &ich8_nvm_ops,
4089}; 4089};
4090 4090
4091struct e1000_info e1000_ich10_info = { 4091const struct e1000_info e1000_ich10_info = {
4092 .mac = e1000_ich10lan, 4092 .mac = e1000_ich10lan,
4093 .flags = FLAG_HAS_JUMBO_FRAMES 4093 .flags = FLAG_HAS_JUMBO_FRAMES
4094 | FLAG_IS_ICH 4094 | FLAG_IS_ICH
@@ -4106,7 +4106,7 @@ struct e1000_info e1000_ich10_info = {
4106 .nvm_ops = &ich8_nvm_ops, 4106 .nvm_ops = &ich8_nvm_ops,
4107}; 4107};
4108 4108
4109struct e1000_info e1000_pch_info = { 4109const struct e1000_info e1000_pch_info = {
4110 .mac = e1000_pchlan, 4110 .mac = e1000_pchlan,
4111 .flags = FLAG_IS_ICH 4111 .flags = FLAG_IS_ICH
4112 | FLAG_HAS_WOL 4112 | FLAG_HAS_WOL
@@ -4125,7 +4125,7 @@ struct e1000_info e1000_pch_info = {
4125 .nvm_ops = &ich8_nvm_ops, 4125 .nvm_ops = &ich8_nvm_ops,
4126}; 4126};
4127 4127
4128struct e1000_info e1000_pch2_info = { 4128const struct e1000_info e1000_pch2_info = {
4129 .mac = e1000_pch2lan, 4129 .mac = e1000_pch2lan,
4130 .flags = FLAG_IS_ICH 4130 .flags = FLAG_IS_ICH
4131 | FLAG_HAS_WOL 4131 | FLAG_HAS_WOL