Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130541
b: refs/heads/master
c: 44176b4
h: refs/heads/master
i:
  130539: 8f94992
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Jan 30, 2009
1 parent 81fab29 commit 7d493d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67797763c60bfe3bbf99ef81ce1042e71678d109
refs/heads/master: 44176b45d1aae04d99c505e6ee98d2d3c3fce173
12 changes: 10 additions & 2 deletions trunk/drivers/net/sfc/sfe4001.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,17 +375,25 @@ static void sfn4111t_fini(struct efx_nic *efx)
i2c_unregister_device(efx->board_info.hwmon_client);
}

static struct i2c_board_info sfn4111t_hwmon_info = {
static struct i2c_board_info sfn4111t_a0_hwmon_info = {
I2C_BOARD_INFO("max6647", 0x4e),
.irq = -1,
};

static struct i2c_board_info sfn4111t_r5_hwmon_info = {
I2C_BOARD_INFO("max6646", 0x4d),
.irq = -1,
};

int sfn4111t_init(struct efx_nic *efx)
{
int rc;

efx->board_info.hwmon_client =
i2c_new_device(&efx->i2c_adap, &sfn4111t_hwmon_info);
i2c_new_device(&efx->i2c_adap,
(efx->board_info.minor < 5) ?
&sfn4111t_a0_hwmon_info :
&sfn4111t_r5_hwmon_info);
if (!efx->board_info.hwmon_client)
return -EIO;

Expand Down

0 comments on commit 7d493d7

Please sign in to comment.