]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: das800: interrupts are required for async command support
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 23 Apr 2013 01:34:54 +0000 (18:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Apr 2013 17:41:40 +0000 (10:41 -0700)
commit11b24ae52e05eff13b481171219cf49e7b4e5b21
tree83409ea58b3bd2eaf1616d0977cbc09ac0b02065
parent0a8d75f2608c35bc9e03d97201ce3ddc5c8f6c92
staging: comedi: das800: interrupts are required for async command support

Interrupt support is optional with this driver. Only hook up the async
command support for the analog input subdevice if the user requested an
interrupt when attaching to the board. This also allows removing the
extra test in das800_ai_do_cmd().

For aesthetic reasons, add some whitespace to the subdevice init.

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/drivers/das800.c