linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Staging: iio/industrialio-core.c: Fixed call of obsolete function
@ 2011-12-12 15:40 Stefan Hengelein
  2011-12-12 19:15 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hengelein @ 2011-12-12 15:40 UTC (permalink / raw)
  To: devel; +Cc: linux-kernel, gregkh, linux-iio, Stefan Hengelein

As scripts/checkpatch.pl suggested, there has been a call of the
obsolete function strict_strtoul which should be replaced with a
kstrtox-function.

Signed-off-by: Stefan Hengelein <stefan.hengelein@informatik.stud.uni-erlangen.de>
---
 drivers/staging/iio/industrialio-core.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/iio/industrialio-core.c b/drivers/staging/iio/industrialio-core.c
index aec9311..7319de8 100644
--- a/drivers/staging/iio/industrialio-core.c
+++ b/drivers/staging/iio/industrialio-core.c
@@ -785,10 +785,10 @@ static ssize_t iio_ev_value_store(struct device *dev,
 {
 	struct iio_dev *indio_dev = dev_get_drvdata(dev);
 	struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
-	unsigned long val;
+	unsigned int val;
 	int ret;
 
-	ret = strict_strtoul(buf, 10, &val);
+	ret = kstrtouint(buf, 10, &val);
 	if (ret)
 		return ret;
 
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Staging: iio/industrialio-core.c: Fixed call of obsolete function
  2011-12-12 15:40 [PATCH] Staging: iio/industrialio-core.c: Fixed call of obsolete function Stefan Hengelein
@ 2011-12-12 19:15 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2011-12-12 19:15 UTC (permalink / raw)
  To: Stefan Hengelein; +Cc: devel, linux-iio, gregkh, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

On Mon, Dec 12, 2011 at 04:40:59PM +0100, Stefan Hengelein wrote:
> As scripts/checkpatch.pl suggested, there has been a call of the
> obsolete function strict_strtoul which should be replaced with a
> kstrtox-function.
> 
> Signed-off-by: Stefan Hengelein <stefan.hengelein@informatik.stud.uni-erlangen.de>
> ---

This doesn't apply to linux-next any more.  Can you redo and resend?

regards,
dan carpenter


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-12 19:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-12 15:40 [PATCH] Staging: iio/industrialio-core.c: Fixed call of obsolete function Stefan Hengelein
2011-12-12 19:15 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).