Commit 8c34d82e authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Johan Hovold

USB: serial: use IS_ENABLED() instead of checking for FOO || FOO_MODULE

The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 3c77f7c9
...@@ -815,7 +815,7 @@ static int usb_serial_probe(struct usb_interface *interface, ...@@ -815,7 +815,7 @@ static int usb_serial_probe(struct usb_interface *interface,
} }
} }
#if defined(CONFIG_USB_SERIAL_PL2303) || defined(CONFIG_USB_SERIAL_PL2303_MODULE) #if IS_ENABLED(CONFIG_USB_SERIAL_PL2303)
/* BEGIN HORRIBLE HACK FOR PL2303 */ /* BEGIN HORRIBLE HACK FOR PL2303 */
/* this is needed due to the looney way its endpoints are set up */ /* this is needed due to the looney way its endpoints are set up */
if (((le16_to_cpu(dev->descriptor.idVendor) == PL2303_VENDOR_ID) && if (((le16_to_cpu(dev->descriptor.idVendor) == PL2303_VENDOR_ID) &&
......
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