Skip to content

Commit

Permalink
hwmon: (max1668) Fix writing the minimum temperature
Browse files Browse the repository at this point in the history
When trying to set the minimum temperature, the driver was erroneously
writing the maximum temperature into the chip.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Cc: stable@vger.kernel.org # v3.2+
Reviewed-by: Jean Delvare <jdelvare@suse.de>
  • Loading branch information
Guenter Roeck committed Feb 18, 2014
1 parent 6d0abec commit 500a915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/max1668.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static ssize_t set_temp_min(struct device *dev,
data->temp_min[index] = clamp_val(temp/1000, -128, 127);
if (i2c_smbus_write_byte_data(client,
MAX1668_REG_LIML_WR(index),
data->temp_max[index]))
data->temp_min[index]))
count = -EIO;
mutex_unlock(&data->update_lock);

Expand Down

0 comments on commit 500a915

Please sign in to comment.