]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: das08: rename and rewrite DAS08_INTE
authorIan Abbott <abbotti@mev.co.uk>
Fri, 5 Jun 2015 17:30:18 +0000 (18:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jun 2015 00:06:40 +0000 (17:06 -0700)
commit30153639b33c5ff465115760cc6f71810eef789b
tree3e5668b9ba09561f2a8e3bc1a78567159a7f9b3b
parent688defd2de62f73638ee4d5807b20961c70cf90d
staging: comedi: das08: rename and rewrite DAS08_INTE

The `DAS08_INTE` macro contains a mask for the "INTE" bit in the control
register (except on "JR" boards).  Setting it to 1 enables interrupts.
Setting it to 0 disables interrupts and clears the "IRQ" bit in the
status register.  Rename the macro to `DAS08_CONTROL_INTE` and add a
comment.  Also use the `BIT()` macro to define its value.  (Note: the
driver does not currently enable interrupts.)

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/das08.c