]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit77630119ba0d64ddbe1c839adfd05483d403a0ac
tree83409ea58b3bd2eaf1616d0977cbc09ac0b02065
parent2bc405831d5bd83f263c2a0eac915ba5292d4cbe
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