staging: comedi: s626: clarify COMEDI_CB_EOA code
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Sep 2014 23:16:02 +0000 (16:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Sep 2014 21:35:22 +0000 (14:35 -0700)
commit27cb98142f42432733ac0a0cb2a35330756d5c19
tree4570c3e4d8a868d8e3fd76f425e0ae60657cb3f7
parente37b20aa58d8b6e4df41222f4aacf2b055c973b2
staging: comedi: s626: clarify COMEDI_CB_EOA code

The end-of-acquisition only applies when the cmd->stop_src == TRIG_COUNT.

Refactor the code in s626_handle_eos_interrupt() that detects the end-of-
acquisition to clarify this.

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/s626.c