Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209423
b: refs/heads/master
c: 28cbd46
h: refs/heads/master
i:
  209421: 6dcf1bb
  209419: 852a331
  209415: 61a02fe
  209407: 824dce0
v: v3
  • Loading branch information
Jean Delvare committed Aug 14, 2010
1 parent 280fa8f commit 0b7a4c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: 738e5e05362bdbb31dbc270d31005c12cec8dbb2
refs/heads/master: 28cbd461f022e30dba555926b76625a35e194166
9 changes: 2 additions & 7 deletions trunk/drivers/hwmon/asc7621.c
Original file line number Diff line number Diff line change
Expand Up @@ -1150,9 +1150,6 @@ static int asc7621_detect(struct i2c_client *client,
{
struct i2c_adapter *adapter = client->adapter;
int company, verstep, chip_index;
struct device *dev;

dev = &client->dev;

if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA))
return -ENODEV;
Expand All @@ -1169,13 +1166,11 @@ static int asc7621_detect(struct i2c_client *client,

if (company == asc7621_chips[chip_index].company_id &&
verstep == asc7621_chips[chip_index].verstep_id) {
strlcpy(client->name, asc7621_chips[chip_index].name,
I2C_NAME_SIZE);
strlcpy(info->type, asc7621_chips[chip_index].name,
I2C_NAME_SIZE);

dev_info(&adapter->dev, "Matched %s\n",
asc7621_chips[chip_index].name);
dev_info(&adapter->dev, "Matched %s at 0x%02x\n",
asc7621_chips[chip_index].name, client->addr);
return 0;
}
}
Expand Down

0 comments on commit 0b7a4c4

Please sign in to comment.