diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-02-22 11:29:25 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-02-22 11:29:25 -0500 |
| commit | 0f0ca14386e0431fbedaae5efc550d46cf93b9cf (patch) | |
| tree | a30a10d61e6a692bf7b61dc0c88f40442e17871d | |
| parent | 645ceee885facc6de60051be150ca1b06bdb9e51 (diff) | |
| parent | 500a91571f0a5d0d3242d83802ea2fd1faccc66e (diff) | |
Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon fix from Guenter Roeck:
"Fix writing the minimum temperature in max1668 driver"
* tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
hwmon: (max1668) Fix writing the minimum temperature
| -rw-r--r-- | drivers/hwmon/max1668.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/max1668.c b/drivers/hwmon/max1668.c index a7626358c95d..029b65e6c589 100644 --- a/drivers/hwmon/max1668.c +++ b/drivers/hwmon/max1668.c | |||
| @@ -243,7 +243,7 @@ static ssize_t set_temp_min(struct device *dev, | |||
| 243 | data->temp_min[index] = clamp_val(temp/1000, -128, 127); | 243 | data->temp_min[index] = clamp_val(temp/1000, -128, 127); |
| 244 | if (i2c_smbus_write_byte_data(client, | 244 | if (i2c_smbus_write_byte_data(client, |
| 245 | MAX1668_REG_LIML_WR(index), | 245 | MAX1668_REG_LIML_WR(index), |
| 246 | data->temp_max[index])) | 246 | data->temp_min[index])) |
| 247 | count = -EIO; | 247 | count = -EIO; |
| 248 | mutex_unlock(&data->update_lock); | 248 | mutex_unlock(&data->update_lock); |
| 249 | 249 | ||
