summaryrefslogtreecommitdiff
path: root/samples/pktgen
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2020-08-21 10:55:44 +0800
committerFelipe Balbi <balbi@kernel.org>2020-10-02 09:57:41 +0300
commit3301c215a2bb94b5a0afcb444bbe9bf2a395a65d (patch)
treeac2b2eca3cc6457c171d29af8742b3e1da72c499 /samples/pktgen
parent8dafb3c04df3b3b5a3ee2c7f5d8285a8b2f0aa78 (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 <vasilyev@ispras.ru> CC: Evgeny Novikov <novikov@ispras.ru> CC: Benjamin Herrenschmidt <benh@kernel.crashing.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'samples/pktgen')
0 files changed, 0 insertions, 0 deletions