USB: serial: option: use mass-storage class define
Subsystems (2)
Johan Hovold
maintainerPATCH 2/2 USB: serial: option: use mass-storage class define
Use the USB class define rather than a magic number when refusing to bind to mass-storage interfaces.
Signed-off-by Johan Hovold <[email protected]>
--- drivers/usb/serial/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/serial/option.c +1 -1
@@ -2117,7 +2117,7 @@ static int option_probe(struct usb_serial *serial,const struct option_blacklist_info *blacklist;/* Never bind to the CD-Rom emulation interface */ -if (iface_desc->bInterfaceClass ==0x08 ) +if (iface_desc->bInterfaceClass ==USB_CLASS_MASS_STORAGE )return -ENODEV ;/*