1c942fddfSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 26284be23SKishon Vijay Abraham I /* 36284be23SKishon Vijay Abraham I * omap_usb.h -- omap usb2 phy header file 46284be23SKishon Vijay Abraham I * 5*81530a38SRoger Quadros * Copyright (C) 2012-2020 Texas Instruments Incorporated - http://www.ti.com 66284be23SKishon Vijay Abraham I * Author: Kishon Vijay Abraham I <[email protected]> 76284be23SKishon Vijay Abraham I */ 86284be23SKishon Vijay Abraham I 96284be23SKishon Vijay Abraham I #ifndef __DRIVERS_OMAP_USB2_H 106284be23SKishon Vijay Abraham I #define __DRIVERS_OMAP_USB2_H 116284be23SKishon Vijay Abraham I 12*81530a38SRoger Quadros #include <linux/usb/phy_companion.h> 139955a783SKishon Vijay Abraham I 146284be23SKishon Vijay Abraham I #define phy_to_omapusb(x) container_of((x), struct omap_usb, phy) 156284be23SKishon Vijay Abraham I 166284be23SKishon Vijay Abraham I #if defined(CONFIG_OMAP_USB2) || defined(CONFIG_OMAP_USB2_MODULE) 176284be23SKishon Vijay Abraham I extern int omap_usb2_set_comparator(struct phy_companion *comparator); 186284be23SKishon Vijay Abraham I #else omap_usb2_set_comparator(struct phy_companion * comparator)196284be23SKishon Vijay Abraham Istatic inline int omap_usb2_set_comparator(struct phy_companion *comparator) 206284be23SKishon Vijay Abraham I { 216284be23SKishon Vijay Abraham I return -ENODEV; 226284be23SKishon Vijay Abraham I } 236284be23SKishon Vijay Abraham I #endif 246284be23SKishon Vijay Abraham I 256284be23SKishon Vijay Abraham I #endif /* __DRIVERS_OMAP_USB_H */ 26