Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68736
b: refs/heads/master
c: cc28a61
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Mark M. Hoffman committed Oct 10, 2007
1 parent 1eae619 commit c7b1cdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 894c00cf3805670faddd41d3d5dcb3c0ab75a39d
refs/heads/master: cc28a610d4fcce1831d26f2099e23fbb3eb7260c
12 changes: 6 additions & 6 deletions trunk/drivers/hwmon/thmc50.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ static int thmc50_detect(struct i2c_adapter *adapter, int address, int kind)
struct thmc50_data *data;
struct device *dev;
int err = 0;
const char *type_name = "";
const char *type_name;

if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) {
pr_debug("thmc50: detect failed, "
Expand Down Expand Up @@ -309,13 +309,9 @@ static int thmc50_detect(struct i2c_adapter *adapter, int address, int kind)
pr_debug("thmc50: Detection of THMC50/ADM1022 failed\n");
goto exit_free;
}
pr_debug("thmc50: Detected %s (version %x, revision %x)\n",
type_name, (revision >> 4) - 0xc, revision & 0xf);
data->type = kind;

if (kind == thmc50)
type_name = "thmc50";
else if (kind == adm1022) {
if (kind == adm1022) {
int id = i2c_adapter_id(client->adapter);
int i;

Expand All @@ -328,7 +324,11 @@ static int thmc50_detect(struct i2c_adapter *adapter, int address, int kind)
data->has_temp3 = 1;
break;
}
} else {
type_name = "thmc50";
}
pr_debug("thmc50: Detected %s (version %x, revision %x)\n",
type_name, (revision >> 4) - 0xc, revision & 0xf);

/* Fill in the remaining client fields & put it into the global list */
strlcpy(client->name, type_name, I2C_NAME_SIZE);
Expand Down

0 comments on commit c7b1cdc

Please sign in to comment.