staging: comedi: amplc_pc236: combine interrupt enable/disable functions
authorIan Abbott <abbotti@mev.co.uk>
Mon, 28 Jul 2014 12:09:32 +0000 (13:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:48:42 +0000 (16:48 -0700)
commit7f526aad196da471040a30bec4c788518e450fa2
treeaeedbb019247d5a80ce258f6005b155f78ee838e
parent42b241c04e9b0cb655124fd61f729756afd21cc5
staging: comedi: amplc_pc236: combine interrupt enable/disable functions

`pc236_intr_enable()` and `pc236_intr_disable()` are very similar.
Combine them into a single function `pc236_intr_update()` with a
parameter to indicate whether interrupts are being enabled or disabled.

Change type type of the `enable_irq` member of the private data to
`bool` to match the parameter.

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