summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/host.h
diff options
context:
space:
mode:
authorPeter Chen2013-08-14 11:44:07 +0200
committerGreg Kroah-Hartman2013-08-14 21:37:19 +0200
commit3f124d233e97db96d9471d1fb346335d43d8650d (patch)
treeb2953e4a35c6b6574641c9b5ab1a3d9c07d9a651 /drivers/usb/chipidea/host.h
parentusb: chipidea: otg: add otg file used to access otgsc (diff)
downloadkernel-qcow2-linux-3f124d233e97db96d9471d1fb346335d43d8650d.tar.gz
kernel-qcow2-linux-3f124d233e97db96d9471d1fb346335d43d8650d.tar.xz
kernel-qcow2-linux-3f124d233e97db96d9471d1fb346335d43d8650d.zip
usb: chipidea: add role init and destroy APIs
- The role's init will be called at probe procedure. - The role's destroy will be called at fail patch at probe and driver's removal. - The role's start/stop will be called when specific role has started. Tested-by: Marek Vasut <marex@denx.de> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/host.h')
-rw-r--r--drivers/usb/chipidea/host.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/host.h b/drivers/usb/chipidea/host.h
index 058875c15333..5707bf379bfb 100644
--- a/drivers/usb/chipidea/host.h
+++ b/drivers/usb/chipidea/host.h
@@ -4,6 +4,7 @@
#ifdef CONFIG_USB_CHIPIDEA_HOST
int ci_hdrc_host_init(struct ci_hdrc *ci);
+void ci_hdrc_host_destroy(struct ci_hdrc *ci);
#else
@@ -12,6 +13,11 @@ static inline int ci_hdrc_host_init(struct ci_hdrc *ci)
return -ENXIO;
}
+static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
+{
+
+}
+
#endif
#endif /* __DRIVERS_USB_CHIPIDEA_HOST_H */