summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/otg_fsm.h
diff options
context:
space:
mode:
authorLi Jun2014-04-23 09:56:51 +0200
committerGreg Kroah-Hartman2014-04-24 21:56:35 +0200
commit15f75defacd3da412d4c9823d4a9c9f410923766 (patch)
tree297e0ef987b934927671eeba88eb67339dba471b /drivers/usb/chipidea/otg_fsm.h
parentusb: chipidea: OTG HNP and SRP fsm implementation (diff)
downloadkernel-qcow2-linux-15f75defacd3da412d4c9823d4a9c9f410923766.tar.gz
kernel-qcow2-linux-15f75defacd3da412d4c9823d4a9c9f410923766.tar.xz
kernel-qcow2-linux-15f75defacd3da412d4c9823d4a9c9f410923766.zip
usb: chipidea: add sys inputs for OTG fsm input
This patch adds sys input to control and show OTG fsm inputs by application, user can do host and preipheral role switch by change these inputs. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/otg_fsm.h')
-rw-r--r--drivers/usb/chipidea/otg_fsm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/otg_fsm.h b/drivers/usb/chipidea/otg_fsm.h
index 6ec8247d8179..94c085f456a9 100644
--- a/drivers/usb/chipidea/otg_fsm.h
+++ b/drivers/usb/chipidea/otg_fsm.h
@@ -95,6 +95,7 @@ int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);
int ci_otg_fsm_work(struct ci_hdrc *ci);
irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci);
void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci);
+void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci);
#else
@@ -118,6 +119,11 @@ static inline void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci)
}
+static inline void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci)
+{
+
+}
+
#endif
#endif /* __DRIVERS_USB_CHIPIDEA_OTG_FSM_H */