* [PATCH] staging: line6: variax.c: Eliminated remaining strict_stroul()s
@ 2012-08-14 18:22 Johannes Thumshirn
2012-08-16 11:02 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Thumshirn @ 2012-08-14 18:22 UTC (permalink / raw)
To: gregkh, grabner, stefanha, morbidrsa; +Cc: devel, linux-kernel
Eliminated remaining calls to strict_stroul() and replaced them with
strict_kstrtou8().
Signed-off-by: Johannes Thumshirn <morbidrsa@googlemail.com>
---
drivers/staging/line6/variax.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/line6/variax.c b/drivers/staging/line6/variax.c
index bb99ee4..f97416b 100644
--- a/drivers/staging/line6/variax.c
+++ b/drivers/staging/line6/variax.c
@@ -353,10 +353,10 @@ static ssize_t variax_set_model(struct device *dev,
{
struct usb_line6_variax *variax =
usb_get_intfdata(to_usb_interface(dev));
- unsigned long value;
+ u8 value;
int ret;
- ret = strict_strtoul(buf, 10, &value);
+ ret = kstrtou8(buf, 10, &value);
if (ret)
return ret;
@@ -387,10 +387,10 @@ static ssize_t variax_set_active(struct device *dev,
{
struct usb_line6_variax *variax =
usb_get_intfdata(to_usb_interface(dev));
- unsigned long value;
+ u8 value;
int ret;
- ret = strict_strtoul(buf, 10, &value);
+ ret = kstrtou8(buf, 10, &value);
if (ret)
return ret;
--
1.7.11.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: line6: variax.c: Eliminated remaining strict_stroul()s
2012-08-14 18:22 [PATCH] staging: line6: variax.c: Eliminated remaining strict_stroul()s Johannes Thumshirn
@ 2012-08-16 11:02 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2012-08-16 11:02 UTC (permalink / raw)
To: Johannes Thumshirn; +Cc: gregkh, grabner, devel, linux-kernel
On Tue, Aug 14, 2012 at 7:22 PM, Johannes Thumshirn
<morbidrsa@googlemail.com> wrote:
> Eliminated remaining calls to strict_stroul() and replaced them with
> strict_kstrtou8().
>
> Signed-off-by: Johannes Thumshirn <morbidrsa@googlemail.com>
> ---
> drivers/staging/line6/variax.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Commit description is wrong:
s/strict_kstrtou8/kstrtou8/
Reviewed-by: Stefan Hajnoczi <stefanha@gmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-16 11:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-14 18:22 [PATCH] staging: line6: variax.c: Eliminated remaining strict_stroul()s Johannes Thumshirn
2012-08-16 11:02 ` Stefan Hajnoczi
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®