]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: pass subdevice to comedi_buf_is_mmapped()
authorIan Abbott <abbotti@mev.co.uk>
Tue, 6 May 2014 12:12:11 +0000 (13:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:25:49 +0000 (21:25 +0900)
commit813b4f7983c0aab3c2595a9b08247231c4229700
tree45af4e49b5765af11f4747e024e4a8a8b62573f5
parentff54ea5692e217366d45fd92b5382e257e31c7b9
staging: comedi: pass subdevice to comedi_buf_is_mmapped()

Change the parameters of `comedi_buf_is_mmapped()` 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