1GADGET_IS_OTG(9) Kernel Mode Gadget API GADGET_IS_OTG(9)
23
4
NAME
6gadget_is_otg - return true iff the hardware is OTG-ready
7
SYNOPSIS
9int gadget_is_otg(struct usb_gadget * g);
10
ARGUMENTS
12g
13controller that might have a Mini-AB connector
14
DESCRIPTION
16This is a runtime test, since kernels with a USB-OTG stack sometimes
17run on boards which only have a Mini-B (or Mini-A) connector.
18
AUTHOR
20David Brownell <dbrownell@users.sourceforge.net>
21Author.
22
COPYRIGHT
24Kernel Hackers Manual 3.10 June 2019 GADGET_IS_OTG(9)