Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8667296 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Guenter Roeck
Browse files

hwmon: (jc42) fix type mismatch



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

Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
Cc: stable@kernel.org
Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
parent 85e2efbb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;