From: Guenter Roeck Date: Mon, 8 Jun 2015 18:01:50 +0000 (-0700) Subject: hwmon: (ltc2978) LTM4676 supports CLEAR_PEAKS X-Git-Tag: firefly_0821_release~176^2~1213^2~28 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aeaa4d9f812bfd841643b37f65c6b6597045be37;p=firefly-linux-kernel-4.4.55.git hwmon: (ltc2978) LTM4676 supports CLEAR_PEAKS Use the CLEAR_PEAKS command on LTM4676. Reviewed-by: Jean Delvare Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/pmbus/ltc2978.c b/drivers/hwmon/pmbus/ltc2978.c index 0835050ec245..33081d1d1c5a 100644 --- a/drivers/hwmon/pmbus/ltc2978.c +++ b/drivers/hwmon/pmbus/ltc2978.c @@ -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);