diff options
Diffstat (limited to 'drivers/hwmon/tmp421.c')
-rw-r--r-- | drivers/hwmon/tmp421.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c index bb9760d7e8b6..738c472ece27 100644 --- a/drivers/hwmon/tmp421.c +++ b/drivers/hwmon/tmp421.c | |||
@@ -254,9 +254,9 @@ static int tmp421_detect(struct i2c_client *client, | |||
254 | return -ENODEV; | 254 | return -ENODEV; |
255 | } | 255 | } |
256 | 256 | ||
257 | strlcpy(info->type, tmp421_id[kind - 1].name, I2C_NAME_SIZE); | 257 | strlcpy(info->type, tmp421_id[kind].name, I2C_NAME_SIZE); |
258 | dev_info(&adapter->dev, "Detected TI %s chip at 0x%02x\n", | 258 | dev_info(&adapter->dev, "Detected TI %s chip at 0x%02x\n", |
259 | names[kind - 1], client->addr); | 259 | names[kind], client->addr); |
260 | 260 | ||
261 | return 0; | 261 | return 0; |
262 | } | 262 | } |