diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-04-20 14:26:58 -0400 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2016-04-25 06:39:58 -0400 |
commit | 8c34d82e9dc67bb06e20e015ec677f82b72a26b3 (patch) | |
tree | 90c19b42ebef6fd58ed505920a1d2cbbcf85b612 | |
parent | 3c77f7c9e96bc40ac6985dd595cdd551afd34f2e (diff) |
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: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 46f1f13b41f1..7ecf4ff86b9a 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -815,7 +815,7 @@ static int usb_serial_probe(struct usb_interface *interface, | |||
815 | } | 815 | } |
816 | } | 816 | } |
817 | 817 | ||
818 | #if defined(CONFIG_USB_SERIAL_PL2303) || defined(CONFIG_USB_SERIAL_PL2303_MODULE) | 818 | #if IS_ENABLED(CONFIG_USB_SERIAL_PL2303) |
819 | /* BEGIN HORRIBLE HACK FOR PL2303 */ | 819 | /* BEGIN HORRIBLE HACK FOR PL2303 */ |
820 | /* this is needed due to the looney way its endpoints are set up */ | 820 | /* this is needed due to the looney way its endpoints are set up */ |
821 | if (((le16_to_cpu(dev->descriptor.idVendor) == PL2303_VENDOR_ID) && | 821 | if (((le16_to_cpu(dev->descriptor.idVendor) == PL2303_VENDOR_ID) && |