OSDN Git Service

staging: comedi: comedidev.h: introduce some 'range_is_external' helpers
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 14 Jul 2014 19:23:39 +0000 (12:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:24:41 +0000 (13:24 -0700)
commita8b677cb534c78e0aaa3c999891df07073e25566
tree6cf32b615144ac319a40a0b9d1182ca704e2548f
parentba9a1e3f07fc43df5f1b8bd8b0c72d0c3bbf5e16
staging: comedi: comedidev.h: introduce some 'range_is_external' helpers

The comedi_krange includes a flags member that currently identifies the
'units' of the range (RF_UNIT) and if the range is from an internal or
external source (RF_EXTERNAL).

Introduce some helper functions to check if a given range is from an
external source.

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