Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: phy: generic: switch over to IS_ENABLED()

when checking if our generic PHY is enabled,
it's a lot easier to use IS_ENABLED() instead
of manually checking for it. While at that, also
remove the bogus defined(MODULE) at the end of
the line.

Signed-off-by: Felipe Balbi <balbi@ti.com>

+1 -1
+1 -1
include/linux/usb/usb_phy_generic.h
··· 13 13 int gpio_reset; 14 14 }; 15 15 16 - #if defined(CONFIG_NOP_USB_XCEIV) || (defined(CONFIG_NOP_USB_XCEIV_MODULE) && defined(MODULE)) 16 + #if IS_ENABLED(CONFIG_NOP_USB_XCEIV) 17 17 /* sometimes transceivers are accessed only through e.g. ULPI */ 18 18 extern struct platform_device *usb_phy_generic_register(void); 19 19 extern void usb_phy_generic_unregister(struct platform_device *);