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:
a0bf2ef
)
USB: serial: option: use mass-storage class define
author
Johan Hovold
<johan@kernel.org>
Wed, 7 Mar 2018 10:49:56 +0000
(11:49 +0100)
committer
Johan Hovold
<johan@kernel.org>
Mon, 19 Mar 2018 11:20:18 +0000
(12:20 +0100)
Use the USB class define rather than a magic number when refusing to
bind to mass-storage interfaces.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/option.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/option.c
b/drivers/usb/serial/option.c
index 1f5145d714d6c605aecec4d60a525f960cad7fad..c3f252283ab9df9a5132f7d297bd79bcbffad801 100644
(file)
--- a/
drivers/usb/serial/option.c
+++ b/
drivers/usb/serial/option.c
@@
-1978,7
+1978,7
@@
static int option_probe(struct usb_serial *serial,
unsigned long device_flags = id->driver_info;
/* Never bind to the CD-Rom emulation interface */
- if (iface_desc->bInterfaceClass ==
0x08
)
+ if (iface_desc->bInterfaceClass ==
USB_CLASS_MASS_STORAGE
)
return -ENODEV;
/*