]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: pass subdevice to __comedi_buf_write_alloc()
authorIan Abbott <abbotti@mev.co.uk>
Tue, 6 May 2014 12:12:13 +0000 (13:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:25:50 +0000 (21:25 +0900)
commit8ab4fe7e13989ef5b11bd96f1ed6763eabb1d17d
tree3503dd51913326e79f9d370d0de77425af886fc5
parent5b108588ba1ff6c18502dc9fe711b0229a18b9f8
staging: comedi: pass subdevice to __comedi_buf_write_alloc()

Local function `__comedi_buf_write_alloc()` is called by
`comedi_buf_write_alloc()` and `comedi_buf_put()`.  It currently takes a
pointer to a `struct comedi_async`.  Change it to take a pointer to a
`struct comedi_subdevice` and use the `async` member for consistency
with other comedi buffer handling functions.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_buf.c