diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-01-05 14:05:20 -0500 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-01-09 12:08:13 -0500 |
commit | 18e83e4cd144e30fb38bf1f714914182c6c8bced (patch) | |
tree | 3b9d93550cecbd127d2c00e50c9c373df8675aa0 /drivers/net/ethernet/sfc/falcon_boards.c | |
parent | 0beaca2ca0b3c12dabab046f1541b09179ec449c (diff) |
sfc: Const-qualify static data as appropriate, partly prompted by checkpatch
Fix the following warnings:
WARNING: struct dev_pm_ops should normally be const
WARNING: static const char * array should probably be static const char * const
Similarly const-qualify struct i2c_board_info, struct i2c_algo_bit_data,
struct efx_ethtool_stat, struct efx_mtd_ops and struct siena_nvram_type_info.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/falcon_boards.c')
-rw-r--r-- | drivers/net/ethernet/sfc/falcon_boards.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/sfc/falcon_boards.c b/drivers/net/ethernet/sfc/falcon_boards.c index 6cc16b8cc6f4..2084cc6ede52 100644 --- a/drivers/net/ethernet/sfc/falcon_boards.c +++ b/drivers/net/ethernet/sfc/falcon_boards.c | |||
@@ -87,7 +87,7 @@ static const u8 falcon_lm87_common_regs[] = { | |||
87 | 0 | 87 | 0 |
88 | }; | 88 | }; |
89 | 89 | ||
90 | static int efx_init_lm87(struct efx_nic *efx, struct i2c_board_info *info, | 90 | static int efx_init_lm87(struct efx_nic *efx, const struct i2c_board_info *info, |
91 | const u8 *reg_values) | 91 | const u8 *reg_values) |
92 | { | 92 | { |
93 | struct falcon_board *board = falcon_board(efx); | 93 | struct falcon_board *board = falcon_board(efx); |
@@ -179,7 +179,7 @@ static int efx_check_lm87(struct efx_nic *efx, unsigned mask) | |||
179 | #else /* !CONFIG_SENSORS_LM87 */ | 179 | #else /* !CONFIG_SENSORS_LM87 */ |
180 | 180 | ||
181 | static inline int | 181 | static inline int |
182 | efx_init_lm87(struct efx_nic *efx, struct i2c_board_info *info, | 182 | efx_init_lm87(struct efx_nic *efx, const struct i2c_board_info *info, |
183 | const u8 *reg_values) | 183 | const u8 *reg_values) |
184 | { | 184 | { |
185 | return 0; | 185 | return 0; |
@@ -442,7 +442,7 @@ static int sfe4001_check_hw(struct efx_nic *efx) | |||
442 | return (status < 0) ? -EIO : -ERANGE; | 442 | return (status < 0) ? -EIO : -ERANGE; |
443 | } | 443 | } |
444 | 444 | ||
445 | static struct i2c_board_info sfe4001_hwmon_info = { | 445 | static const struct i2c_board_info sfe4001_hwmon_info = { |
446 | I2C_BOARD_INFO("max6647", 0x4e), | 446 | I2C_BOARD_INFO("max6647", 0x4e), |
447 | }; | 447 | }; |
448 | 448 | ||
@@ -522,7 +522,7 @@ static const u8 sfe4002_lm87_regs[] = { | |||
522 | 0 | 522 | 0 |
523 | }; | 523 | }; |
524 | 524 | ||
525 | static struct i2c_board_info sfe4002_hwmon_info = { | 525 | static const struct i2c_board_info sfe4002_hwmon_info = { |
526 | I2C_BOARD_INFO("lm87", 0x2e), | 526 | I2C_BOARD_INFO("lm87", 0x2e), |
527 | .platform_data = &sfe4002_lm87_channel, | 527 | .platform_data = &sfe4002_lm87_channel, |
528 | }; | 528 | }; |
@@ -591,7 +591,7 @@ static const u8 sfn4112f_lm87_regs[] = { | |||
591 | 0 | 591 | 0 |
592 | }; | 592 | }; |
593 | 593 | ||
594 | static struct i2c_board_info sfn4112f_hwmon_info = { | 594 | static const struct i2c_board_info sfn4112f_hwmon_info = { |
595 | I2C_BOARD_INFO("lm87", 0x2e), | 595 | I2C_BOARD_INFO("lm87", 0x2e), |
596 | .platform_data = &sfn4112f_lm87_channel, | 596 | .platform_data = &sfn4112f_lm87_channel, |
597 | }; | 597 | }; |
@@ -653,7 +653,7 @@ static const u8 sfe4003_lm87_regs[] = { | |||
653 | 0 | 653 | 0 |
654 | }; | 654 | }; |
655 | 655 | ||
656 | static struct i2c_board_info sfe4003_hwmon_info = { | 656 | static const struct i2c_board_info sfe4003_hwmon_info = { |
657 | I2C_BOARD_INFO("lm87", 0x2e), | 657 | I2C_BOARD_INFO("lm87", 0x2e), |
658 | .platform_data = &sfe4003_lm87_channel, | 658 | .platform_data = &sfe4003_lm87_channel, |
659 | }; | 659 | }; |