staging: comedi: das08: rename and rewrite DAS08_IP
authorIan Abbott <abbotti@mev.co.uk>
Fri, 5 Jun 2015 17:30:15 +0000 (18:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jun 2015 00:06:40 +0000 (17:06 -0700)
commit4d14ac8a900961b44173a5dff38e138ecda8e4c7
treebf63efb84b261efc9ad3084256f0904c987b6359
parent2398391017ddec9427bdb94cc5d70326eaf8a3c5
staging: comedi: das08: rename and rewrite DAS08_IP

The `DAS08_IP()` macro takes a value read from the status register and
returns the state of the three digital input channels (except on "JR"
boards).  Rename it to `DAS08_STATUS_DI()` and add a comment.  Also
re-arrange the expression used to extract the state of the digital
inputs for consistency with other register macros.

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