mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 06:55:07 +07:00
48f6b09996
The boards are currently using otg_ulpi_create and mxc_ulpi_access_ops, both are only present if CONFIG_USB_ULPI is set. To remove the need of ifdefs in the board code introduce a imx_otg_ulpi_create functions which expands to a static inline function if compiled without ulpi. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 lines
325 B
C
17 lines
325 B
C
#ifndef __MACH_ULPI_H
|
|
#define __MACH_ULPI_H
|
|
|
|
#ifdef CONFIG_USB_ULPI
|
|
struct otg_transceiver *imx_otg_ulpi_create(unsigned int flags);
|
|
#else
|
|
static inline struct otg_transceiver *imx_otg_ulpi_create(unsigned int flags)
|
|
{
|
|
return NULL;
|
|
}
|
|
#endif
|
|
|
|
extern struct otg_io_access_ops mxc_ulpi_access_ops;
|
|
|
|
#endif /* __MACH_ULPI_H */
|
|
|