summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/comedi_compat32.c
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2014-11-04 18:09:01 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-05 14:52:18 -0800
commitc299a6789c35392dcd66f806013bab86969cf5c4 (patch)
tree7fe4aac56d9de920b0c2779ee1940bd793f1bf7c /drivers/staging/comedi/comedi_compat32.c
parent20f083c07565cb75a5f04e97acfc8faff2b13101 (diff)
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>
Diffstat (limited to 'drivers/staging/comedi/comedi_compat32.c')
-rw-r--r--drivers/staging/comedi/comedi_compat32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/comedi/comedi_compat32.c b/drivers/staging/comedi/comedi_compat32.c
index 9b6f96f1591c..5a4c74f703b3 100644
--- a/drivers/staging/comedi/comedi_compat32.c
+++ b/drivers/staging/comedi/comedi_compat32.c
@@ -416,6 +416,8 @@ static inline int raw_ioctl(struct file *file, unsigned int cmd,
case COMEDI_UNLOCK:
case COMEDI_CANCEL:
case COMEDI_POLL:
+ case COMEDI_SETRSUBD:
+ case COMEDI_SETWSUBD:
/* No translation needed. */
rc = translated_ioctl(file, cmd, arg);
break;