staging: comedi: amplc_pc236: add callback to check and clear interrupt
authorIan Abbott <abbotti@mev.co.uk>
Mon, 28 Jul 2014 12:09:33 +0000 (13:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:48:42 +0000 (16:48 -0700)
commit55901d15b6f816af5bff9efd55b6400121dbc04a
tree7098b3d6a3fc50f101fb0ba07f183280ba2bd708
parent7f526aad196da471040a30bec4c788518e450fa2
staging: comedi: amplc_pc236: add callback to check and clear interrupt

Add an optional callback function pointer to the board data to be called
when checking if an interrupt has occurred and to clear it if it has.

Since the callback returns `bool`, change a few other `int` values to
`bool` to match.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pc236.c