staging: comedi: pcl711: add AI cancel handler
authorIan Abbott <abbotti@mev.co.uk>
Thu, 26 Sep 2013 09:16:37 +0000 (10:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 16:34:44 +0000 (09:34 -0700)
commitb7ea391cc4edf5ebb62d6341285ac5da342213f4
tree56118ac8b4d4550963e333c6993215f581900594
parent1b0ef827d9edbc7e702ad50c363293d5cea6bb76
staging: comedi: pcl711: add AI cancel handler

Comedi subdevices that support asynchronous commands should have a
'cancel' handler to stop an in-progress command.  Add such a handler to
the pcl711 driver module.  I think merely setting the acquisition mode
to "software-triggered" would be sufficient, but also clear the
interrupt status for good luck.

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