Re: [PATCH] hwmon: (ltc2978) LTM4676 supports CLEAR_PEAKS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Guenter,

On Mon, 20 Jul 2015 14:09:10 -0700, Guenter Roeck wrote:
> Use the CLEAR_PEAKS command on LTM4676.
> 
> Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
> ---
>  drivers/hwmon/pmbus/ltc2978.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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);

Good catch.

Reviewed-by: Jean Delvare <jdelvare@xxxxxxx>

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux