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

Commit aeaa4d9f authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (ltc2978) LTM4676 supports CLEAR_PEAKS



Use the CLEAR_PEAKS command on LTM4676.

Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 68a40382
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ static int ltc2978_clear_peaks(struct i2c_client *client, int page,
{
	int ret;

	if (id == ltc3880 || id == ltc3883)
	if (id == ltc3880 || id == ltc3883 || id == ltm4676)
		ret = pmbus_write_byte(client, 0, LTC3880_MFR_CLEAR_PEAKS);
	else
		ret = pmbus_write_byte(client, page, PMBUS_CLEAR_FAULTS);