projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2471c09
)
staging: line6: Changed some strict_strtouls to kstrtou8
author
Johannes Thumshirn
<
[email protected]
>
Wed, 27 Jun 2012 19:25:56 +0000
(21:25 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 6 Jul 2012 23:12:44 +0000
(16:12 -0700)
Adjusted strict_strtoul calls to kstrtou8 in order to take the changes of
line6_transmit_parameter() into account.
Signed-off-by: Johannes Thumshirn <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/line6/variax.c
patch
|
blob
|
history
diff --git
a/drivers/staging/line6/variax.c
b/drivers/staging/line6/variax.c
index d36622228b2df7baf4e244dcd7fc889986324d45..bb99ee4919e7e7af0c95d8ff0a8090de5f13615f 100644
(file)
--- a/
drivers/staging/line6/variax.c
+++ b/
drivers/staging/line6/variax.c
@@
-319,10
+319,10
@@
static ssize_t variax_set_volume(struct device *dev,
{
struct usb_line6_variax *variax =
usb_get_intfdata(to_usb_interface(dev));
- u
nsigned long
value;
+ u
8
value;
int ret;
- ret =
strict_strtoul
(buf, 10, &value);
+ ret =
kstrtou8
(buf, 10, &value);
if (ret)
return ret;
@@
-418,10
+418,10
@@
static ssize_t variax_set_tone(struct device *dev,
{
struct usb_line6_variax *variax =
usb_get_intfdata(to_usb_interface(dev));
- u
nsigned long
value;
+ u
8
value;
int ret;
- ret =
strict_strtoul
(buf, 10, &value);
+ ret =
kstrtou8
(buf, 10, &value);
if (ret)
return ret;