]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfbd94c1ce819875bf45937badb97fa0dc3360f37
tree7098b3d6a3fc50f101fb0ba07f183280ba2bd708
parent9285e1b5aa21f2302cd77dbc2c871be05b035784
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