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

Commit 179c4fdb authored by Frans Meulenbroeks's avatar Frans Meulenbroeks Committed by Guenter Roeck
Browse files

hwmon: replaced strict_str* with kstr*



replaced strict_strtol with kstrtol and
replaced strict_strtuol with kstrtuol

This satisfies checkpatch -f
Compile tested only: no warnings or errors given

Signed-off-by: default avatarFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
parent 24edc0a7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ static ssize_t set_avg_interval(struct device *dev,
	unsigned long long data;
	acpi_status status;

	res = strict_strtoul(buf, 10, &temp);
	res = kstrtoul(buf, 10, &temp);
	if (res)
		return res;

@@ -241,7 +241,7 @@ static ssize_t set_cap(struct device *dev, struct device_attribute *devattr,
	unsigned long long data;
	acpi_status status;

	res = strict_strtoul(buf, 10, &temp);
	res = kstrtoul(buf, 10, &temp);
	if (res)
		return res;

@@ -311,7 +311,7 @@ static ssize_t set_trip(struct device *dev, struct device_attribute *devattr,
	int res;
	unsigned long temp;

	res = strict_strtoul(buf, 10, &temp);
	res = kstrtoul(buf, 10, &temp);
	if (res)
		return res;

+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ static ssize_t adcxx_set_max(struct device *dev,
	struct adcxx *adc = spi_get_drvdata(spi);
	unsigned long value;

	if (strict_strtoul(buf, 10, &value))
	if (kstrtoul(buf, 10, &value))
		return -EINVAL;

	if (mutex_lock_interruptible(&adc->lock))
+1 −1
Original line number Diff line number Diff line
@@ -767,7 +767,7 @@ static ssize_t set_update_interval(struct device *dev,
	int i, err;
	u8 reg;

	err = strict_strtoul(buf, 10, &val);
	err = kstrtoul(buf, 10, &val);
	if (err)
		return err;

+1 −1
Original line number Diff line number Diff line
@@ -503,7 +503,7 @@ static ssize_t chassis_clear(struct device *dev,
	struct adm9240_data *data = i2c_get_clientdata(client);
	unsigned long val;

	if (strict_strtoul(buf, 10, &val) || val != 0)
	if (kstrtoul(buf, 10, &val) || val != 0)
		return -EINVAL;

	mutex_lock(&data->update_lock);
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ static ssize_t adt7411_set_bit(struct device *dev,
	int ret;
	unsigned long flag;

	ret = strict_strtoul(buf, 0, &flag);
	ret = kstrtoul(buf, 0, &flag);
	if (ret || flag > 1)
		return -EINVAL;

Loading