xref: /OK3568_Linux_fs/kernel/include/linux/usb/usb_phy_generic.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __LINUX_USB_NOP_XCEIV_H
3*4882a593Smuzhiyun #define __LINUX_USB_NOP_XCEIV_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <linux/usb/otg.h>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #if IS_ENABLED(CONFIG_NOP_USB_XCEIV)
8*4882a593Smuzhiyun /* sometimes transceivers are accessed only through e.g. ULPI */
9*4882a593Smuzhiyun extern struct platform_device *usb_phy_generic_register(void);
10*4882a593Smuzhiyun extern void usb_phy_generic_unregister(struct platform_device *);
11*4882a593Smuzhiyun #else
usb_phy_generic_register(void)12*4882a593Smuzhiyun static inline struct platform_device *usb_phy_generic_register(void)
13*4882a593Smuzhiyun {
14*4882a593Smuzhiyun 	return NULL;
15*4882a593Smuzhiyun }
16*4882a593Smuzhiyun 
usb_phy_generic_unregister(struct platform_device * pdev)17*4882a593Smuzhiyun static inline void usb_phy_generic_unregister(struct platform_device *pdev)
18*4882a593Smuzhiyun {
19*4882a593Smuzhiyun }
20*4882a593Smuzhiyun #endif
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #endif /* __LINUX_USB_NOP_XCEIV_H */
23