staging: comedi: comedi_fops: introduce comedi_is_subdevice_running()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 19 Dec 2012 22:42:47 +0000 (15:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 22:25:48 +0000 (14:25 -0800)
commite0dac318ee2807d5ec1b09c1a608fdc25ef2ac7b
treedf457dba82e8319f2f8e0ae187b2fce48f7df305
parent74120719a70c984e04c16afe53dbdea868bed6da
staging: comedi: comedi_fops: introduce comedi_is_subdevice_running()

Introduce a helper function that checks the subdevice runflags to
see if the subdevice is running a command.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c
drivers/staging/comedi/comedidev.h