diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-02-16 08:01:49 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-02-16 11:18:31 -0500 |
commit | e866729605a43a739fc56023a8530b07a93d3458 (patch) | |
tree | ebe0b4b10f42c9fc486db360a7d3fc262b162d06 /drivers/hwmon/jc42.c | |
parent | 85e2efbb1db9a18d218006706d6e4fbeb0216213 (diff) |
hwmon: (jc42) fix type mismatch
In set_temp_crit_hyst(), make the variable 'val' have the correct
type for strict_strtoul().
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Cc: stable@kernel.org
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/jc42.c')
-rw-r--r-- | drivers/hwmon/jc42.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index 340fc78c8dde..5efe2399e8f8 100644 --- a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c | |||
@@ -332,7 +332,7 @@ static ssize_t set_temp_crit_hyst(struct device *dev, | |||
332 | { | 332 | { |
333 | struct i2c_client *client = to_i2c_client(dev); | 333 | struct i2c_client *client = to_i2c_client(dev); |
334 | struct jc42_data *data = i2c_get_clientdata(client); | 334 | struct jc42_data *data = i2c_get_clientdata(client); |
335 | long val; | 335 | unsigned long val; |
336 | int diff, hyst; | 336 | int diff, hyst; |
337 | int err; | 337 | int err; |
338 | int ret = count; | 338 | int ret = count; |