提交 aeaa4d9f 编写于 作者: G Guenter Roeck

hwmon: (ltc2978) LTM4676 supports CLEAR_PEAKS

Use the CLEAR_PEAKS command on LTM4676.
Reviewed-by: NJean Delvare <jdelvare@suse.de>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 68a40382
...@@ -313,7 +313,7 @@ static int ltc2978_clear_peaks(struct i2c_client *client, int page, ...@@ -313,7 +313,7 @@ static int ltc2978_clear_peaks(struct i2c_client *client, int page,
{ {
int ret; int ret;
if (id == ltc3880 || id == ltc3883) if (id == ltc3880 || id == ltc3883 || id == ltm4676)
ret = pmbus_write_byte(client, 0, LTC3880_MFR_CLEAR_PEAKS); ret = pmbus_write_byte(client, 0, LTC3880_MFR_CLEAR_PEAKS);
else else
ret = pmbus_write_byte(client, page, PMBUS_CLEAR_FAULTS); ret = pmbus_write_byte(client, page, PMBUS_CLEAR_FAULTS);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册