Commit 40bfef05 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Felipe Balbi

usb: gadget: remove bufsiz from struct usb_composite_dev

there is no read user of bufsiz, its content is available via
USB_COMP_EP0_BUFSIZ. Remove it.
Acked-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent e13f17ff
...@@ -1449,7 +1449,6 @@ static int composite_bind(struct usb_gadget *gadget, ...@@ -1449,7 +1449,6 @@ static int composite_bind(struct usb_gadget *gadget,
cdev->req->complete = composite_setup_complete; cdev->req->complete = composite_setup_complete;
gadget->ep0->driver_data = cdev; gadget->ep0->driver_data = cdev;
cdev->bufsiz = USB_COMP_EP0_BUFSIZ;
cdev->driver = composite; cdev->driver = composite;
/* /*
......
...@@ -318,7 +318,6 @@ extern void usb_composite_setup_continue(struct usb_composite_dev *cdev); ...@@ -318,7 +318,6 @@ extern void usb_composite_setup_continue(struct usb_composite_dev *cdev);
* struct usb_composite_device - represents one composite usb gadget * struct usb_composite_device - represents one composite usb gadget
* @gadget: read-only, abstracts the gadget's usb peripheral controller * @gadget: read-only, abstracts the gadget's usb peripheral controller
* @req: used for control responses; buffer is pre-allocated * @req: used for control responses; buffer is pre-allocated
* @bufsiz: size of buffer pre-allocated in @req
* @config: the currently active configuration * @config: the currently active configuration
* *
* One of these devices is allocated and initialized before the * One of these devices is allocated and initialized before the
...@@ -349,7 +348,6 @@ extern void usb_composite_setup_continue(struct usb_composite_dev *cdev); ...@@ -349,7 +348,6 @@ extern void usb_composite_setup_continue(struct usb_composite_dev *cdev);
struct usb_composite_dev { struct usb_composite_dev {
struct usb_gadget *gadget; struct usb_gadget *gadget;
struct usb_request *req; struct usb_request *req;
unsigned bufsiz;
struct usb_configuration *config; struct usb_configuration *config;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment