projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1c1a3d
)
hwmon: (max34440) Fix resetting temperature history
author
Guenter Roeck
<linux@roeck-us.net>
Fri, 24 Feb 2012 11:44:34 +0000
(
03:44
-0800)
committer
Guenter Roeck
<guenter.roeck@ericsson.com>
Fri, 24 Feb 2012 16:06:15 +0000
(08:06 -0800)
Temperature history is reset by writing 0x8000 into the peak temperature
register, not 0xffff.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/pmbus/max34440.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/pmbus/max34440.c
b/drivers/hwmon/pmbus/max34440.c
index beaf5a8d9c45063e08a9ee22ee0b6f23a97e51b5..9b97a5b3cf3df7420df79c86ce83adc247e687c1 100644
(file)
--- a/
drivers/hwmon/pmbus/max34440.c
+++ b/
drivers/hwmon/pmbus/max34440.c
@@
-82,7
+82,7
@@
static int max34440_write_word_data(struct i2c_client *client, int page,
case PMBUS_VIRT_RESET_TEMP_HISTORY:
ret = pmbus_write_word_data(client, page,
MAX34440_MFR_TEMPERATURE_PEAK,
- 0x
ffff
);
+ 0x
8000
);
break;
default:
ret = -ENODATA;