staging: comedi: use CMDF_BOGUS in do_cmd_ioctl()
authorIan Abbott <abbotti@mev.co.uk>
Wed, 3 Sep 2014 12:45:44 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:50:14 +0000 (13:50 -0700)
`TRIG_BOGUS` is now just a synonym for `CMDF_BOGUS`.  Change
`do_cmd_ioctl()` to use the new name.

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_fops.c

index 9d60a39..495969f 100644 (file)
@@ -1532,7 +1532,7 @@ static int do_cmd_ioctl(struct comedi_device *dev,
 
        ret = s->do_cmdtest(dev, s, &async->cmd);
 
-       if (async->cmd.flags & TRIG_BOGUS || ret) {
+       if (async->cmd.flags & CMDF_BOGUS || ret) {
                dev_dbg(dev->class_dev, "test returned %d\n", ret);
                cmd = async->cmd;
                /* restore chanlist pointer before copying back */