projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5292c1
)
USB-CDC: change simple_strtol to simple_strtoul
author
Vitaly Kuzmichev
<
[email protected]
>
Fri, 13 Aug 2010 13:02:41 +0000
(17:02 +0400)
committer
Remy Bohmer
<
[email protected]
>
Mon, 20 Sep 2010 19:57:17 +0000
(21:57 +0200)
The patch is based on commit
bb9496c6f7e853e5d4edd5397c9d45f1968d623c
(done by Julia Lawall <
[email protected]
>) from linux-2.6.git.
Since num is unsigned, it would seem better to use simple_strtoul that
simple_strtol.
Signed-off-by: Vitaly Kuzmichev <
[email protected]
>
drivers/usb/gadget/epautoconf.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/epautoconf.c
b/drivers/usb/gadget/epautoconf.c
index c7fad3992e0490bbf0fa1297c04858b391670684..e11cc204b7d0623f9050d23cee852e12e38536fc 100644
(file)
--- a/
drivers/usb/gadget/epautoconf.c
+++ b/
drivers/usb/gadget/epautoconf.c
@@
-156,7
+156,7
@@
ep_matches (
/* report address */
if (isdigit (ep->name [2])) {
- u8 num = simple_strtol (&ep->name [2], NULL, 10);
+ u8 num = simple_strto
u
l (&ep->name [2], NULL, 10);
desc->bEndpointAddress |= num;
#ifdef MANY_ENDPOINTS
} else if (desc->bEndpointAddress & USB_DIR_IN) {