lkml.org 
[lkml]   [2011]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[49/70] hwmon: (jc42) fix type mismatch
    2.6.37-stable review patch.  If anyone has any objections, please let us know.

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

    From: Clemens Ladisch <clemens@ladisch.de>

    commit e866729605a43a739fc56023a8530b07a93d3458 upstream.

    In set_temp_crit_hyst(), make the variable 'val' have the correct
    type for strict_strtoul().

    Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
    Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>


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

    --- a/drivers/hwmon/jc42.c
    +++ b/drivers/hwmon/jc42.c
    @@ -332,7 +332,7 @@ static ssize_t set_temp_crit_hyst(struct
    {
    struct i2c_client *client = to_i2c_client(dev);
    struct jc42_data *data = i2c_get_clientdata(client);
    - long val;
    + unsigned long val;
    int diff, hyst;
    int err;
    int ret = count;



    \
     
     \ /
      Last update: 2011-02-22 23:29    [W:0.019 / U:177.936 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site