diff options
| author | Alan Stern <[email protected]> | 2020-08-21 10:55:44 +0800 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2020-10-02 09:57:41 +0300 |
| commit | 3301c215a2bb94b5a0afcb444bbe9bf2a395a65d (patch) | |
| tree | ac2b2eca3cc6457c171d29af8742b3e1da72c499 /tools/perf/scripts/python | |
| parent | 8dafb3c04df3b3b5a3ee2c7f5d8285a8b2f0aa78 (diff) | |
USB: UDC: Expand device model API interface
The routines used by the UDC core to interface with the kernel's
device model, namely usb_add_gadget_udc(),
usb_add_gadget_udc_release(), and usb_del_gadget_udc(), provide access
to only a subset of the device model's full API. They include
functionality equivalent to device_register() and device_unregister()
for gadgets, but they omit device_initialize(), device_add(),
device_del(), get_device(), and put_device().
This patch expands the UDC API by adding usb_initialize_gadget(),
usb_add_gadget(), usb_del_gadget(), usb_get_gadget(), and
usb_put_gadget() to fill in the gap. It rewrites the existing
routines to call the new ones.
CC: Anton Vasilyev <[email protected]>
CC: Evgeny Novikov <[email protected]>
CC: Benjamin Herrenschmidt <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Alan Stern <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions