File Index
Files and directories
Sign in
FILE

omap_usb.h

File preview with syntax highlighting.

linux-6.19.14/include/linux/phy/omap_usb.h C
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * omap_usb.h -- omap usb2 phy header file
 4 *
 5 * Copyright (C) 2012-2020 Texas Instruments Incorporated - http://www.ti.com
 6 * Author: Kishon Vijay Abraham I <kishon@ti.com>
 7 */
 8
 9#ifndef __DRIVERS_OMAP_USB2_H
10#define __DRIVERS_OMAP_USB2_H
11
12#include <linux/usb/phy_companion.h>
13
14#define	phy_to_omapusb(x)	container_of((x), struct omap_usb, phy)
15
16#if defined(CONFIG_OMAP_USB2) || defined(CONFIG_OMAP_USB2_MODULE)
17extern int omap_usb2_set_comparator(struct phy_companion *comparator);
18#else
19static inline int omap_usb2_set_comparator(struct phy_companion *comparator)
20{
21	return -ENODEV;
22}
23#endif
24
25#endif /* __DRIVERS_OMAP_USB_H */
~/ Read-only file preview.