[PATCH 00/11] staging: comedi: cleanup asynchronous buffer functions

H Hartley Sweeten hsweeten at visionengravers.com
Fri Dec 21 16:36:13 UTC 2012


The functions used to interact with the asynchronous buffer currently are
located in the drivers.c source file. The only function drivers.c uses is
comedi_buf_alloc().

For aesthetic reasons and to and help maintainability, separate all the
asynchronous buffer functions out to a new comedi_buf.c source file.

Do a bit of cleanup of the comedi_buf_* functions to clarify them.

H Hartley Sweeten (11):
  staging: comedi: separate out comedi_buf_* functions
  staging: comedi: comedi_buf: factor out common comedi_buf_write_alloc_* code
  staging: comedi: comedi_buf: factor out common code to free the buf_page_list
  staging: comedi: comedi_buf: factor out the new buffer allocation code
  staging: comedi: comedi_buf: consolidate the buffer deallocation code
  staging: comedi: comedi_buf: rename comedi_reset_async_buf()
  staging: comedi: comedi_buf: clarify comedi_buf_write_free()
  staging: comedi: comedi_buf: clarify comedi_buf_read_free()
  staging: comedi: comedi_buf: clarify comedi_buf_read_alloc()
  staging: comedi: comedi_buf: clarify __comedi_buf_write_alloc()
  staging: comedi: comedi_buf: remove comedi_buf_write_alloc_strict()

 drivers/staging/comedi/Makefile          |   3 +-
 drivers/staging/comedi/comedi_buf.c      | 402 +++++++++++++++++++++++++++++++
 drivers/staging/comedi/comedi_fops.c     |   4 +-
 drivers/staging/comedi/comedi_internal.h |   3 +-
 drivers/staging/comedi/comedidev.h       |   2 -
 drivers/staging/comedi/drivers.c         | 398 ------------------------------
 6 files changed, 408 insertions(+), 404 deletions(-)
 create mode 100644 drivers/staging/comedi/comedi_buf.c

-- 
1.8.0




More information about the devel mailing list