Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e0aa673 authored by Jack Pham's avatar Jack Pham Committed by Matt Wagantall
Browse files

usb: gadget: Add udc_priv member to struct usb_request



This member is used to store additional private flags
for BAM-enabled functions to pass information to the UDC.

Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 18a73b2a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ struct usb_ep;
 *	Note that for writes (IN transfers) some data bytes may still
 *	reside in a device-side FIFO when the request is reported as
 *	complete.
 * @udc_priv: Vendor private data in usage by the UDC.
 *
 * These are allocated/freed through the endpoint they're used with.  The
 * hardware's driver can add extra per-request data to the memory it returns,
@@ -115,6 +116,7 @@ struct usb_request {

	int			status;
	unsigned		actual;
	unsigned		udc_priv;
};

/*-------------------------------------------------------------------------*/