summaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-04-15 16:18:38 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-02 16:39:09 -0700
commit3dacdf11f1f82b98d301d5e1d42cdaea9a39968a (patch)
tree8a7b6d46b91fbc51d6e78ff436fc51e7c63aaced /include/linux/usb
parent67e7d64bcece93c84fd6e3832e7c6d91e57c06dc (diff)
usb: factor out state_string() on otg drivers
Provide common otg_state_string() and use it in drivers. Signed-off-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/otg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h
index 6e40718f5ab..bc84858b3a4 100644
--- a/include/linux/usb/otg.h
+++ b/include/linux/usb/otg.h
@@ -246,5 +246,6 @@ otg_unregister_notifier(struct otg_transceiver *otg, struct notifier_block *nb)
/* for OTG controller drivers (and maybe other stuff) */
extern int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num);
+extern const char *otg_state_string(enum usb_otg_state state);
#endif /* __LINUX_USB_OTG_H */