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

Change the parameters of `comedi_buf_write_n_allocated()` to pass a
pointer to the comedi subdevice instead of a pointer to the "async"
structure belonging to the subdevice.

The main aim at the moment is to replace all the `struct comedi_async *`
parameters with `struct comedi_subdevice *` parameters in the comedi
driver API.

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
drivers/staging/comedi/comedi_fops.c
drivers/staging/comedi/comedi_internal.h