staging: comedi: add ioctls to set per-file read and write subdevice
authorIan Abbott <abbotti@mev.co.uk>
Tue, 4 Nov 2014 18:09:01 +0000 (18:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Nov 2014 22:52:18 +0000 (14:52 -0800)
commitc299a6789c35392dcd66f806013bab86969cf5c4
tree7fe4aac56d9de920b0c2779ee1940bd793f1bf7c
parent20f083c07565cb75a5f04e97acfc8faff2b13101
staging: comedi: add ioctls to set per-file read and write subdevice

Now that Comedi has the structures in place to support setting the
current "read" and/or "write" subdevice on a per-file object basis, add
new ioctls to set them.  The newly chosen "read" ("write") subdevice
needs to support "read" ("write") commands, and the file cannot be busy
handling a "read" ("write") command on the previous subdevice (if any).

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