hwmon: (ltc2978) LTM4676 supports CLEAR_PEAKS
authorGuenter Roeck <linux@roeck-us.net>
Mon, 8 Jun 2015 18:01:50 +0000 (11:01 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 9 Aug 2015 20:44:27 +0000 (13:44 -0700)
Use the CLEAR_PEAKS command on LTM4676.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/ltc2978.c

index 0835050ec245ba67c65bd59f341b0f7eef2c3032..33081d1d1c5afebc40e1252fa44cd783238625c2 100644 (file)
@@ -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);