瀏覽代碼

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>
Clemens Ladisch 14 年之前
父節點
當前提交
e866729605
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/hwmon/jc42.c

+ 1 - 1
drivers/hwmon/jc42.c

@@ -332,7 +332,7 @@ static ssize_t set_temp_crit_hyst(struct device *dev,
 {
 	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;