]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/hwmon/tmp421.c
V4L/DVB: V4L - Makfile:Removed duplicate entry of davinci
[linux-beck.git] / drivers / hwmon / tmp421.c
index bb9760d7e8b6d92644feba51595bf542375ff166..738c472ece273bf972b1206e9b164b88d046b0bc 100644 (file)
@@ -254,9 +254,9 @@ static int tmp421_detect(struct i2c_client *client,
                return -ENODEV;
        }
 
-       strlcpy(info->type, tmp421_id[kind - 1].name, I2C_NAME_SIZE);
+       strlcpy(info->type, tmp421_id[kind].name, I2C_NAME_SIZE);
        dev_info(&adapter->dev, "Detected TI %s chip at 0x%02x\n",
-                names[kind - 1], client->addr);
+                names[kind], client->addr);
 
        return 0;
 }