Skip to content

Commit dc91ad8

Browse files
groeckGuenter Roeck
authored andcommitted
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 <[email protected]> Acked-by: Jean Delvare <[email protected]>
1 parent c1c1a3d commit dc91ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/pmbus/max34440.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static int max34440_write_word_data(struct i2c_client *client, int page,
8282
case PMBUS_VIRT_RESET_TEMP_HISTORY:
8383
ret = pmbus_write_word_data(client, page,
8484
MAX34440_MFR_TEMPERATURE_PEAK,
85-
0xffff);
85+
0x8000);
8686
break;
8787
default:
8888
ret = -ENODATA;

0 commit comments

Comments
 (0)