Re: [PATCH] hwmon: (max34440) Fix resetting temperature history

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


On Fri, 24 Feb 2012 06:50:00 -0800, Guenter Roeck wrote:
> Temperature history is reset by writing 0x8000 into the peak temperature
> register, not 0xffff.
> 
> Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
> ---
>  drivers/hwmon/pmbus/max34440.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/hwmon/pmbus/max34440.c b/drivers/hwmon/pmbus/max34440.c
> index beaf5a8..9b97a5b 100644
> --- a/drivers/hwmon/pmbus/max34440.c
> +++ b/drivers/hwmon/pmbus/max34440.c
> @@ -82,7 +82,7 @@ static int max34440_write_word_data(struct i2c_client *client, int page,
>  	case PMBUS_VIRT_RESET_TEMP_HISTORY:
>  		ret = pmbus_write_word_data(client, page,
>  					    MAX34440_MFR_TEMPERATURE_PEAK,
> -					    0xffff);
> +					    0x8000);
>  		break;
>  	default:
>  		ret = -ENODATA;

Good catch.

Acked-by: Jean Delvare <khali@xxxxxxxxxxxx>

-- 
Jean Delvare

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


[Video for Linux]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Photos]     [Yosemite Photos]     [Free Singles Community]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]

Add to Google Powered by Linux