Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 500a9157 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (max1668) Fix writing the minimum temperature



When trying to set the minimum temperature, the driver was erroneously
writing the maximum temperature into the chip.

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Cc: stable@vger.kernel.org # v3.2+
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
parent 6d0abeca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);