Skip to content

Commit

Permalink
hwmon: (ltc2978) LTM4676 supports CLEAR_PEAKS
Browse files Browse the repository at this point in the history
Use the CLEAR_PEAKS command on LTM4676.

Reviewed-by: Jean Delvare <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
groeck committed Aug 9, 2015
1 parent 68a4038 commit aeaa4d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/pmbus/ltc2978.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aeaa4d9

Please sign in to comment.