Re: [PATCH 1/2] iio: replace strict_strtol() with kstrtol() in max517 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This one doesn't really matter as it'll get eaten up in a conversion to chan_spec shortly anyway. But it is an improvement even if a temporary one so what the heck...

On 4/30/2012 3:12 PM, Peter Meerwald wrote:
Signed-off-by: Peter Meerwald<pmeerw@xxxxxxxxxx>
Acked-by: Jonathan Cameron <jic23@xxxxxxxxxx>
---
  drivers/staging/iio/dac/max517.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/iio/dac/max517.c b/drivers/staging/iio/dac/max517.c
index a3f588df..60aef18 100644
--- a/drivers/staging/iio/dac/max517.c
+++ b/drivers/staging/iio/dac/max517.c
@@ -67,7 +67,7 @@ static ssize_t max517_set_value(struct device *dev,
  	int res;
  	long val;

-	res = strict_strtol(buf, 10,&val);
+	res = kstrtol(buf, 10,&val);

  	if (res)
  		return res;

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux