lkml.org 
[lkml]   [2011]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[220/244] hwmon: (ds620) Fix handling of negative temperatures
    3.0-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Roland Stigge <stigge@antcom.de>

    commit cc41d586e8b4d76164fe7731c1c49be6cc5fc7e6 upstream.

    Signed (negative) temperatures were not handled correctly.

    Signed-off-by: Roland Stigge <stigge@antcom.de>
    Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/hwmon/ds620.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/hwmon/ds620.c
    +++ b/drivers/hwmon/ds620.c
    @@ -72,7 +72,7 @@ struct ds620_data {
    char valid; /* !=0 if following fields are valid */
    unsigned long last_updated; /* In jiffies */

    - u16 temp[3]; /* Register values, word */
    + s16 temp[3]; /* Register values, word */
    };

    /*



    \
     
     \ /
      Last update: 2011-09-29 01:07    [W:2.543 / U:0.152 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site