Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc91ad8e authored by Guenter Roeck's avatar Guenter Roeck Committed by Guenter Roeck
Browse files

hwmon: (max34440) Fix resetting temperature history



Temperature history is reset by writing 0x8000 into the peak temperature
register, not 0xffff.

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Acked-by: default avatarJean Delvare <khali@linux-fr.org>
parent c1c1a3d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;