aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2012-06-18 08:37:19 -0400
committerFelipe Balbi <balbi@ti.com>2012-06-22 06:19:22 -0400
commitf87cabf4d56e1fc5d08434df9d54ef3450a756f0 (patch)
tree13f192b9ff3a48c977c3dcb6d3cac5db9f084ec8
parent6f47209b271661ecd5929397cbe646ff247f01b6 (diff)
usb: gadget: storage_common: remove FSG_BUFFHD_STATIC_BUFFER support
Since f_mass_storage stopped using FSG_BUFFHD_STATIC_BUFFER (because it caused buffers not to be page aligned which did not work well with at least some UDCs), no code was using it. Removing not to bloat the code too much. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/storage_common.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/usb/gadget/storage_common.c b/drivers/usb/gadget/storage_common.c
index 8081ca3a70a2..8a8157f96a2d 100644
--- a/drivers/usb/gadget/storage_common.c
+++ b/drivers/usb/gadget/storage_common.c
@@ -38,12 +38,6 @@
38 */ 38 */
39 39
40/* 40/*
41 * When FSG_BUFFHD_STATIC_BUFFER is defined when this file is included
42 * the fsg_buffhd structure's buf field will be an array of FSG_BUFLEN
43 * characters rather then a pointer to void.
44 */
45
46/*
47 * When USB_GADGET_DEBUG_FILES is defined the module param num_buffers 41 * When USB_GADGET_DEBUG_FILES is defined the module param num_buffers
48 * sets the number of pipeline buffers (length of the fsg_buffhd array). 42 * sets the number of pipeline buffers (length of the fsg_buffhd array).
49 * The valid range of num_buffers is: num >= 2 && num <= 4. 43 * The valid range of num_buffers is: num >= 2 && num <= 4.
@@ -260,11 +254,7 @@ enum fsg_buffer_state {
260}; 254};
261 255
262struct fsg_buffhd { 256struct fsg_buffhd {
263#ifdef FSG_BUFFHD_STATIC_BUFFER
264 char buf[FSG_BUFLEN];
265#else
266 void *buf; 257 void *buf;
267#endif
268 enum fsg_buffer_state state; 258 enum fsg_buffer_state state;
269 struct fsg_buffhd *next; 259 struct fsg_buffhd *next;
270 260