usb: gadget: remove bufsiz from struct usb_composite_dev
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 10 Sep 2012 13:01:52 +0000 (15:01 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 10 Sep 2012 13:01:43 +0000 (16:01 +0300)
there is no read user of bufsiz, its content is available via
USB_COMP_EP0_BUFSIZ. Remove it.

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/composite.c
include/linux/usb/composite.h

index 52689ee9db1249587c99bfe1c7d43fbc14daedc4..16b353fa160af9b73f2d86d40d5d7ba2bd8968f2 100644 (file)
@@ -1449,7 +1449,6 @@ static int composite_bind(struct usb_gadget *gadget,
        cdev->req->complete = composite_setup_complete;
        gadget->ep0->driver_data = cdev;
 
-       cdev->bufsiz = USB_COMP_EP0_BUFSIZ;
        cdev->driver = composite;
 
        /*
index 89d91b671eb0c53a73dab3888e85e390d52a7391..e970fba6dbbbccd9922f4baf354f5a25add2f1a2 100644 (file)
@@ -318,7 +318,6 @@ extern void usb_composite_setup_continue(struct usb_composite_dev *cdev);
  * struct usb_composite_device - represents one composite usb gadget
  * @gadget: read-only, abstracts the gadget's usb peripheral controller
  * @req: used for control responses; buffer is pre-allocated
- * @bufsiz: size of buffer pre-allocated in @req
  * @config: the currently active configuration
  *
  * 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);
 struct usb_composite_dev {
        struct usb_gadget               *gadget;
        struct usb_request              *req;
-       unsigned                        bufsiz;
 
        struct usb_configuration        *config;