diff options
Diffstat (limited to 'drivers/hwmon/adt7411.c')
-rw-r--r-- | drivers/hwmon/adt7411.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/hwmon/adt7411.c b/drivers/hwmon/adt7411.c index 34ff03abb50b..d9299dee37d1 100644 --- a/drivers/hwmon/adt7411.c +++ b/drivers/hwmon/adt7411.c | |||
@@ -259,15 +259,17 @@ static int adt7411_detect(struct i2c_client *client, | |||
259 | 259 | ||
260 | val = i2c_smbus_read_byte_data(client, ADT7411_REG_MANUFACTURER_ID); | 260 | val = i2c_smbus_read_byte_data(client, ADT7411_REG_MANUFACTURER_ID); |
261 | if (val < 0 || val != ADT7411_MANUFACTURER_ID) { | 261 | if (val < 0 || val != ADT7411_MANUFACTURER_ID) { |
262 | dev_dbg(&client->dev, "Wrong manufacturer ID. Got %d, " | 262 | dev_dbg(&client->dev, |
263 | "expected %d\n", val, ADT7411_MANUFACTURER_ID); | 263 | "Wrong manufacturer ID. Got %d, expected %d\n", |
264 | val, ADT7411_MANUFACTURER_ID); | ||
264 | return -ENODEV; | 265 | return -ENODEV; |
265 | } | 266 | } |
266 | 267 | ||
267 | val = i2c_smbus_read_byte_data(client, ADT7411_REG_DEVICE_ID); | 268 | val = i2c_smbus_read_byte_data(client, ADT7411_REG_DEVICE_ID); |
268 | if (val < 0 || val != ADT7411_DEVICE_ID) { | 269 | if (val < 0 || val != ADT7411_DEVICE_ID) { |
269 | dev_dbg(&client->dev, "Wrong device ID. Got %d, " | 270 | dev_dbg(&client->dev, |
270 | "expected %d\n", val, ADT7411_DEVICE_ID); | 271 | "Wrong device ID. Got %d, expected %d\n", |
272 | val, ADT7411_DEVICE_ID); | ||
271 | return -ENODEV; | 273 | return -ENODEV; |
272 | } | 274 | } |
273 | 275 | ||