]> 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)
commitbf370fd82d53292c171e4503a8b2f61ae22f3241
tree7098b3d6a3fc50f101fb0ba07f183280ba2bd708
parentc84afca16d6c1465011fe4e0ac07c8c1626133b1
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