1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * omap_usb.h -- omap usb2 phy header file
5 * Copyright (C) 2012-2020 Texas Instruments Incorporated - http://www.ti.com
6 * Author: Kishon Vijay Abraham I <kishon@ti.com>
9 #ifndef __DRIVERS_OMAP_USB2_H
10 #define __DRIVERS_OMAP_USB2_H
12 #include <linux/usb/phy_companion.h>
14 #define phy_to_omapusb(x) container_of((x), struct omap_usb, phy)
16 #if defined(CONFIG_OMAP_USB2) || defined(CONFIG_OMAP_USB2_MODULE)
17 extern int omap_usb2_set_comparator(struct phy_companion *comparator);
19 static inline int omap_usb2_set_comparator(struct phy_companion *comparator)
25 #endif /* __DRIVERS_OMAP_USB_H */