Skip to content

Commit

Permalink
usb: gadget: remove bufsiz from struct usb_composite_dev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Andrzej Siewior authored and Felipe Balbi committed Sep 10, 2012
1 parent e13f17f commit 40bfef0
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion drivers/usb/gadget/composite.c
Original file line number Diff line number Diff line change
@@ -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;

/*
2 changes: 0 additions & 2 deletions include/linux/usb/composite.h
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 40bfef0

Please sign in to comment.