0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef __DRIVERS_OMAP_USB2_H
0010 #define __DRIVERS_OMAP_USB2_H
0011
0012 #include <linux/usb/phy_companion.h>
0013
0014 #define phy_to_omapusb(x) container_of((x), struct omap_usb, phy)
0015
0016 #if defined(CONFIG_OMAP_USB2) || defined(CONFIG_OMAP_USB2_MODULE)
0017 extern int omap_usb2_set_comparator(struct phy_companion *comparator);
0018 #else
0019 static inline int omap_usb2_set_comparator(struct phy_companion *comparator)
0020 {
0021 return -ENODEV;
0022 }
0023 #endif
0024
0025 #endif