linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hengelein <stefan.hengelein@informatik.stud.uni-erlangen.de>
To: devel@linuxdriverproject.org
Cc: linux-kernel@i4.informatik.uni-erlangen.de, gregkh@suse.de,
	linux-iio@vger.kernel.org,
	Stefan Hengelein
	<stefan.hengelein@informatik.stud.uni-erlangen.de>
Subject: [PATCH] Staging: iio/industrialio-core.c: Fixed call of obsolete function
Date: Mon, 12 Dec 2011 16:40:59 +0100	[thread overview]
Message-ID: <1323704459-32235-1-git-send-email-stefan.hengelein@informatik.stud.uni-erlangen.de> (raw)

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


             reply	other threads:[~2011-12-12 15:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-12 15:40 Stefan Hengelein [this message]
2011-12-12 19:15 ` [PATCH] Staging: iio/industrialio-core.c: Fixed call of obsolete function Dan Carpenter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1323704459-32235-1-git-send-email-stefan.hengelein@informatik.stud.uni-erlangen.de \
    --to=stefan.hengelein@informatik.stud.uni-erlangen.de \
    --cc=devel@linuxdriverproject.org \
    --cc=gregkh@suse.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@i4.informatik.uni-erlangen.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).