]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc3852a1f9afc0d29e4073261fbf69a3190035a36
treebf63efb84b261efc9ad3084256f0904c987b6359
parent85633fb02f0d4c4e6d3919e9a3aa1c65f5702ea0
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