Skip to contentSkip to conversation

drivers/staging/line6/variax.c: Change some strict_strtoul() calls

PATCH In review Johannes Thumshirn 2 participants 4 messages May 20, 2012 – Jun 2, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/staging/line6/variax.c: Change some strict_strtoul() calls

Changed strict_strtoul() calls which do not result in a need to change interfaces of called functions.

---
 drivers/staging/line6/variax.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/line6/variax.c +4 -4
index d366222..efa496d 100644
@@ -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;
 
Signature · 1 line
1.7.7.6
author
#1 lore raw

Just wanted to ask about the status of this patch.

Quoted 42 lines · Johannes Thumshirn

Changed strict_strtoul() calls which do not result in a need to change interfaces of called functions.

---
 drivers/staging/line6/variax.c |    8 ++++----

 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/line6/variax.c +0 -0
index d366222..efa496d 100644
@@ -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;

drivers/staging/line6/variax.c +0 -0
@@ -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.7.6

maintainer
#2 lore raw
Quoted 12 lines · morbid-rsa

Just wanted to ask about the status of this patch.

Quoted 8 lines · Johannes Thumshirn

Changed strict_strtoul() calls which do not result in a need to change interfaces of called functions.

---
 drivers/staging/line6/variax.c |    8 ++++----

 1 files changed, 4 insertions(+), 4 deletions(-)

As this came in after the merge window closed for patches, I have to hold on to it until 3.5-rc1 comes out. It's in my queue and not lost, don't worry.

thanks for your patience,

greg k-h

author
#3 lore raw
Quoted 14 lines · Greg KH
Quoted 12 lines · morbid-rsa

Just wanted to ask about the status of this patch.

Quoted 8 lines · Johannes Thumshirn

Changed strict_strtoul() calls which do not result in a need to change interfaces of called functions.

---
 drivers/staging/line6/variax.c |    8 ++++----

 1 files changed, 4 insertions(+), 4 deletions(-)
Quoted 7 lines

As this came in after the merge window closed for patches, I have to hold on to it until 3.5-rc1 comes out.  It's in my queue and not lost, don't worry.

thanks for your patience,

greg k-h

Oh ok, thanks for the fast answer.

Johannes