aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/falcon_boards.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/sfc/falcon_boards.c')
-rw-r--r--drivers/net/ethernet/sfc/falcon_boards.c12
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
90static int efx_init_lm87(struct efx_nic *efx, struct i2c_board_info *info, 90static 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
181static inline int 181static inline int
182efx_init_lm87(struct efx_nic *efx, struct i2c_board_info *info, 182efx_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
445static struct i2c_board_info sfe4001_hwmon_info = { 445static 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
525static struct i2c_board_info sfe4002_hwmon_info = { 525static 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
594static struct i2c_board_info sfn4112f_hwmon_info = { 594static 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
656static struct i2c_board_info sfe4003_hwmon_info = { 656static 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};