mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 00:54:09 +08:00
staging: comedi: use CMDF_BOGUS in do_cmd_ioctl()
`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>
This commit is contained in:
parent
dd7eb1251d
commit
b0446a21bd
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user