aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChunfeng Yun <[email protected]>2021-07-15 17:07:50 +0800
committerGreg Kroah-Hartman <[email protected]>2021-07-27 15:58:37 +0200
commit2037f2991ddedded1ef4aaabe4caf11e306158dc (patch)
treece1c353b56fca7a5c917672b38c2ab8f4e853176 /include/linux
parent72c1b91f5de3cedfefa1921bc3987eced2868bd7 (diff)
usb: common: add helper to get role-switch-default-mode
Add helper to get "role-switch-default-mode", and convert it to the corresponding enum usb_dr_mode Signed-off-by: Chunfeng Yun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
-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 7ceeecbb9e02..6475f880be37 100644
--- a/include/linux/usb/otg.h
+++ b/include/linux/usb/otg.h
@@ -128,5 +128,6 @@ enum usb_dr_mode {
* and returns the corresponding enum usb_dr_mode
*/
extern enum usb_dr_mode usb_get_dr_mode(struct device *dev);
+extern enum usb_dr_mode usb_get_role_switch_default_mode(struct device *dev);
#endif /* __LINUX_USB_OTG_H */