ARM: OMAP1: 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: Tony Lindgren <tony@atomide.com>
This commit is contained in:

committed by
Tony Lindgren

parent
29b4817d40
commit
fcebddb9d8
@@ -349,7 +349,7 @@ static struct omap_usb_config h2_usb_config __initdata = {
|
||||
#if IS_ENABLED(CONFIG_USB_OMAP)
|
||||
.hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */
|
||||
/* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */
|
||||
#elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
|
||||
#elif IS_ENABLED(CONFIG_USB_OHCI_HCD)
|
||||
/* needs OTG cable, or NONSTANDARD (B-to-MiniB) */
|
||||
.hmc_mode = 20, /* 1:dev|otg(off) 1:host 2:disabled */
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user