summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/ltc2978.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2015-06-08 11:01:50 -0700
committerGuenter Roeck <linux@roeck-us.net>2015-08-09 13:44:27 -0700
commitaeaa4d9f812bfd841643b37f65c6b6597045be37 (patch)
tree254a5981c9fd687e283231575e926917d90ed530 /drivers/hwmon/pmbus/ltc2978.c
parent68a403823600fc9d8277f930981d3a013353b2fe (diff)
downloadtalos-obmc-linux-aeaa4d9f812bfd841643b37f65c6b6597045be37.tar.gz
talos-obmc-linux-aeaa4d9f812bfd841643b37f65c6b6597045be37.zip
hwmon: (ltc2978) LTM4676 supports CLEAR_PEAKS
Use the CLEAR_PEAKS command on LTM4676. Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/pmbus/ltc2978.c')
-rw-r--r--drivers/hwmon/pmbus/ltc2978.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud