USB: serial: use IS_ENABLED() instead of checking for built-in or module
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 18 Aug 2016 13:45:06 +0000 (09:45 -0400)
committerJohan Hovold <johan@kernel.org>
Mon, 22 Aug 2016 07:36:28 +0000 (09:36 +0200)
commit919568691df41e655a6dac2b7a5f94befeedaf71
tree1906122148f956f5d2790303e9f4cdb36562bea7
parentfa8410b355251fd30341662a40ac6b22d3e38468
USB: serial: use IS_ENABLED() instead of checking for built-in or 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.

Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/keyspan_pda.c