]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/fscpos.c
[PATCH] hwmon: soften lm75 initialization
[linux-2.6-omap-h63xx.git] / drivers / hwmon / fscpos.c
index 270015b626adefcc3fe66cd41fefc2391bb33706..301ae98bd0adb1fca9d0f0e6687a538019439a0b 100644 (file)
@@ -167,7 +167,7 @@ static ssize_t set_temp_reset(struct i2c_client *client, struct fscpos_data
                                "experience to the module author.\n");
 
        /* Supported value: 2 (clears the status) */
-       fscpos_write_value(client, FSCPOS_REG_TEMP_STATE[nr], 2);
+       fscpos_write_value(client, FSCPOS_REG_TEMP_STATE[nr - 1], 2);
        return count;
 }