瀏覽代碼

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>
Michal Nazarewicz 13 年之前
父節點
當前提交
f87cabf4d5
共有 1 個文件被更改,包括 0 次插入10 次删除
  1. 0 10
      drivers/usb/gadget/storage_common.c

+ 0 - 10
drivers/usb/gadget/storage_common.c

@@ -37,12 +37,6 @@
  * When FSG_NO_OTG is defined fsg_otg_desc won't be defined.
  * When FSG_NO_OTG is defined fsg_otg_desc won't be defined.
  */
  */
 
 
-/*
- * When FSG_BUFFHD_STATIC_BUFFER is defined when this file is included
- * the fsg_buffhd structure's buf field will be an array of FSG_BUFLEN
- * characters rather then a pointer to void.
- */
-
 /*
 /*
  * When USB_GADGET_DEBUG_FILES is defined the module param num_buffers
  * When USB_GADGET_DEBUG_FILES is defined the module param num_buffers
  * sets the number of pipeline buffers (length of the fsg_buffhd array).
  * sets the number of pipeline buffers (length of the fsg_buffhd array).
@@ -260,11 +254,7 @@ enum fsg_buffer_state {
 };
 };
 
 
 struct fsg_buffhd {
 struct fsg_buffhd {
-#ifdef FSG_BUFFHD_STATIC_BUFFER
-	char				buf[FSG_BUFLEN];
-#else
 	void				*buf;
 	void				*buf;
-#endif
 	enum fsg_buffer_state		state;
 	enum fsg_buffer_state		state;
 	struct fsg_buffhd		*next;
 	struct fsg_buffhd		*next;