projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hwmon: (max1668) Fix writing the minimum temperature
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
hwmon
/
max1668.c
diff --git
a/drivers/hwmon/max1668.c
b/drivers/hwmon/max1668.c
index a7626358c95df29c2ccb62fa89ed23251acfb979..029b65e6c58914d36061914e35738bda0c1e385c 100644
(file)
--- a/
drivers/hwmon/max1668.c
+++ b/
drivers/hwmon/max1668.c
@@
-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_m
ax
[index]))
+ data->temp_m
in
[index]))
count = -EIO;
mutex_unlock(&data->update_lock);