summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/max34440.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2012-02-24 12:44:34 +0100
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-02-24 17:06:15 +0100
commitdc91ad8e84593eb49c65cca70537088782b21e08 (patch)
tree9ccc693f54161409283b273c5ee6d99be89e2a38 /drivers/hwmon/pmbus/max34440.c
parenthwmon: (f75375s) Fix register write order when setting fans to full speed (diff)
downloadlinux-dc91ad8e84593eb49c65cca70537088782b21e08.tar.xz
linux-dc91ad8e84593eb49c65cca70537088782b21e08.zip
hwmon: (max34440) Fix resetting temperature history
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>
Diffstat (limited to '')
-rw-r--r--drivers/hwmon/pmbus/max34440.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/max34440.c b/drivers/hwmon/pmbus/max34440.c
index beaf5a8d9c45..9b97a5b3cf3d 100644
--- 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,
- 0xffff);
+ 0x8000);
break;
default:
ret = -ENODATA;