Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132170
b: refs/heads/master
c: c15ade6
h: refs/heads/master
v: v3
  • Loading branch information
Darrick J. Wong authored and Linus Torvalds committed Mar 10, 2009
1 parent 5ef7c6a commit 12a0162
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: b943c460ff8556a193b28e2145b513f8b978e869
refs/heads/master: c15ade65788b70797c947f7de3e049e6a23f407f
5 changes: 4 additions & 1 deletion trunk/drivers/hwmon/lm85.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ I2C_CLIENT_INSMOD_7(lm85b, lm85c, adm1027, adt7463, adt7468, emc6d100,
#define LM85_COMPANY_SMSC 0x5c
#define LM85_VERSTEP_VMASK 0xf0
#define LM85_VERSTEP_GENERIC 0x60
#define LM85_VERSTEP_GENERIC2 0x70
#define LM85_VERSTEP_LM85C 0x60
#define LM85_VERSTEP_LM85B 0x62
#define LM85_VERSTEP_ADM1027 0x60
Expand Down Expand Up @@ -334,6 +335,7 @@ static struct lm85_data *lm85_update_device(struct device *dev);
static const struct i2c_device_id lm85_id[] = {
{ "adm1027", adm1027 },
{ "adt7463", adt7463 },
{ "adt7468", adt7468 },
{ "lm85", any_chip },
{ "lm85b", lm85b },
{ "lm85c", lm85c },
Expand Down Expand Up @@ -1153,7 +1155,8 @@ static int lm85_detect(struct i2c_client *client, int kind,
address, company, verstep);

/* All supported chips have the version in common */
if ((verstep & LM85_VERSTEP_VMASK) != LM85_VERSTEP_GENERIC) {
if ((verstep & LM85_VERSTEP_VMASK) != LM85_VERSTEP_GENERIC &&
(verstep & LM85_VERSTEP_VMASK) != LM85_VERSTEP_GENERIC2) {
dev_dbg(&adapter->dev, "Autodetection failed: "
"unsupported version\n");
return -ENODEV;
Expand Down

0 comments on commit 12a0162

Please sign in to comment.