diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2017-02-21 19:59:47 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-17 13:24:48 +0900 |
commit | 5095cb89c62acc78b4cfaeb9a4072979d010510a (patch) | |
tree | 1ce6f59d08f8cd1e4fff9f67f93e6f931aff4233 /include | |
parent | cfd6ed4537a9e938fa76facecd4b9cd65b6d1563 (diff) | |
download | linux-5095cb89c62acc78b4cfaeb9a4072979d010510a.tar.gz linux-5095cb89c62acc78b4cfaeb9a4072979d010510a.tar.bz2 linux-5095cb89c62acc78b4cfaeb9a4072979d010510a.zip |
usb: of: add functions to bind a companion controller
EHCI controllers will have a companion controller. However, on platform
bus, there was difficult to bind them in previous code. So, this
patch adds helper functions to bind them using a "companion" property.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/of.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/usb/of.h b/include/linux/usb/of.h index 5ff9032ee1b4..4031f47629ec 100644 --- a/include/linux/usb/of.h +++ b/include/linux/usb/of.h @@ -18,6 +18,7 @@ int of_usb_update_otg_caps(struct device_node *np, struct usb_otg_caps *otg_caps); struct device_node *usb_of_get_child_node(struct device_node *parent, int portnum); +struct device *usb_of_get_companion_dev(struct device *dev); #else static inline enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0) @@ -38,6 +39,10 @@ static inline struct device_node *usb_of_get_child_node { return NULL; } +static inline struct device *usb_of_get_companion_dev(struct device *dev) +{ + return NULL; +} #endif #if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_USB_SUPPORT) |