Commit 9b284d8e authored by Johan Hovold's avatar Johan Hovold

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.
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent a0bf2ef9
......@@ -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;
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment