aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/of.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/usb/of.h')
-rw-r--r--include/linux/usb/of.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/include/linux/usb/of.h b/include/linux/usb/of.h
index 6cbe7a5c2b57..dba55ccb9b53 100644
--- a/include/linux/usb/of.h
+++ b/include/linux/usb/of.h
@@ -12,13 +12,17 @@
12#include <linux/usb/otg.h> 12#include <linux/usb/otg.h>
13#include <linux/usb/phy.h> 13#include <linux/usb/phy.h>
14 14
15struct usb_device;
16
15#if IS_ENABLED(CONFIG_OF) 17#if IS_ENABLED(CONFIG_OF)
16enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0); 18enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0);
17bool of_usb_host_tpl_support(struct device_node *np); 19bool of_usb_host_tpl_support(struct device_node *np);
18int of_usb_update_otg_caps(struct device_node *np, 20int of_usb_update_otg_caps(struct device_node *np,
19 struct usb_otg_caps *otg_caps); 21 struct usb_otg_caps *otg_caps);
20struct device_node *usb_of_get_child_node(struct device_node *parent, 22struct device_node *usb_of_get_device_node(struct usb_device *hub, int port1);
21 int portnum); 23bool usb_of_has_combined_node(struct usb_device *udev);
24struct device_node *usb_of_get_interface_node(struct usb_device *udev,
25 u8 config, u8 ifnum);
22struct device *usb_of_get_companion_dev(struct device *dev); 26struct device *usb_of_get_companion_dev(struct device *dev);
23#else 27#else
24static inline enum usb_dr_mode 28static inline enum usb_dr_mode
@@ -35,8 +39,17 @@ static inline int of_usb_update_otg_caps(struct device_node *np,
35{ 39{
36 return 0; 40 return 0;
37} 41}
38static inline struct device_node *usb_of_get_child_node 42static inline struct device_node *
39 (struct device_node *parent, int portnum) 43usb_of_get_device_node(struct usb_device *hub, int port1)
44{
45 return NULL;
46}
47static inline bool usb_of_has_combined_node(struct usb_device *udev)
48{
49 return false;
50}
51static inline struct device_node *
52usb_of_get_interface_node(struct usb_device *udev, u8 config, u8 ifnum)
40{ 53{
41 return NULL; 54 return NULL;
42} 55}