From: Johannes Thumshirn <morbidrsa@googlemail.com>
To: gregkh@linuxfoundation.org, grabner@icg.tugraz.at,
stefanha@gmail.com, dan.carpenter@oracle.com
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
Johannes Thumshirn <morbidrsa@googlemail.com>
Subject: [PATCH 6/9] staging: line6: control.c eliminate strict_strtoul() in pod_set_param_int()
Date: Wed, 27 Jun 2012 21:26:00 +0200 [thread overview]
Message-ID: <1340825163-32568-7-git-send-email-morbidrsa@googlemail.com> (raw)
In-Reply-To: <1340825163-32568-1-git-send-email-morbidrsa@googlemail.com>
Exchange strict_strtoul() with kstrtou8() and make "value" a u8 instead of a
unsigned long. This is also needed for the changed
line6_pod_transmit_parameter().
Signed-off-by: Johannes Thumshirn <morbidrsa@googlemail.com>
---
drivers/staging/line6/control.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/line6/control.c b/drivers/staging/line6/control.c
index 67e23b6..f8326f5 100644
--- a/drivers/staging/line6/control.c
+++ b/drivers/staging/line6/control.c
@@ -55,10 +55,10 @@ static ssize_t pod_set_param_int(struct device *dev, const char *buf,
{
struct usb_interface *interface = to_usb_interface(dev);
struct usb_line6_pod *pod = usb_get_intfdata(interface);
- unsigned long value;
+ u8 value;
int retval;
- retval = strict_strtoul(buf, 10, &value);
+ retval = kstrtou8(buf, 10, &value);
if (retval)
return retval;
--
1.7.7.6
next prev parent reply other threads:[~2012-06-27 19:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-27 19:25 [PATCH 0/9] Replaced the calls to strict_strtoul() in the line6 driver Johannes Thumshirn
2012-06-27 19:25 ` [PATCH 1/9] staging: line6: changed interface of line6_transmit_parameter() Johannes Thumshirn
2012-06-27 19:25 ` [PATCH 2/9] staging: line6: Changed some strict_strtouls to kstrtou8 Johannes Thumshirn
2012-06-27 19:25 ` [PATCH 3/9] staging: line6: changed interface of line6_pod_transmit_parameter() Johannes Thumshirn
2012-06-27 19:25 ` [PATCH 4/9] staging: line6: adjusted interface of line6_send_program() Johannes Thumshirn
2012-06-27 19:25 ` [PATCH 5/9] staging: line6: changed interface of pod_send_channel() Johannes Thumshirn
2012-06-27 19:26 ` Johannes Thumshirn [this message]
2012-06-27 19:26 ` [PATCH 7/9] staging: line6: Exchanged strict_strtoul with kstrtou8() in pod.c:pod_resolve() Johannes Thumshirn
2012-06-27 19:26 ` [PATCH 8/9] staging: line6: Changed strict_strtoul() to kstrtou8() in pod_set_channel() Johannes Thumshirn
2012-06-27 19:26 ` [PATCH 9/9] staging: line6: Changed strict_strtoul() to kstrtou8() in pod_set_midi_postprocess() Johannes Thumshirn
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=1340825163-32568-7-git-send-email-morbidrsa@googlemail.com \
--to=morbidrsa@googlemail.com \
--cc=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=grabner@icg.tugraz.at \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stefanha@gmail.com \
/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
all inboxes | Powered by JetHome®