diff options
Diffstat (limited to 'include/linux/usb/of.h')
-rw-r--r-- | include/linux/usb/of.h | 21 |
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 | ||
15 | struct usb_device; | ||
16 | |||
15 | #if IS_ENABLED(CONFIG_OF) | 17 | #if IS_ENABLED(CONFIG_OF) |
16 | enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0); | 18 | enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0); |
17 | bool of_usb_host_tpl_support(struct device_node *np); | 19 | bool of_usb_host_tpl_support(struct device_node *np); |
18 | int of_usb_update_otg_caps(struct device_node *np, | 20 | int of_usb_update_otg_caps(struct device_node *np, |
19 | struct usb_otg_caps *otg_caps); | 21 | struct usb_otg_caps *otg_caps); |
20 | struct device_node *usb_of_get_child_node(struct device_node *parent, | 22 | struct device_node *usb_of_get_device_node(struct usb_device *hub, int port1); |
21 | int portnum); | 23 | bool usb_of_has_combined_node(struct usb_device *udev); |
24 | struct device_node *usb_of_get_interface_node(struct usb_device *udev, | ||
25 | u8 config, u8 ifnum); | ||
22 | struct device *usb_of_get_companion_dev(struct device *dev); | 26 | struct device *usb_of_get_companion_dev(struct device *dev); |
23 | #else | 27 | #else |
24 | static inline enum usb_dr_mode | 28 | static 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 | } |
38 | static inline struct device_node *usb_of_get_child_node | 42 | static inline struct device_node * |
39 | (struct device_node *parent, int portnum) | 43 | usb_of_get_device_node(struct usb_device *hub, int port1) |
44 | { | ||
45 | return NULL; | ||
46 | } | ||
47 | static inline bool usb_of_has_combined_node(struct usb_device *udev) | ||
48 | { | ||
49 | return false; | ||
50 | } | ||
51 | static inline struct device_node * | ||
52 | usb_of_get_interface_node(struct usb_device *udev, u8 config, u8 ifnum) | ||
40 | { | 53 | { |
41 | return NULL; | 54 | return NULL; |
42 | } | 55 | } |