]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: das08: rename DAS08AO_AO_LSB() and DAS08AO_AO_MSB()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 5 Jun 2015 17:30:24 +0000 (18:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jun 2015 00:06:41 +0000 (17:06 -0700)
commit3cc820a83933778ae3abb36caa81202cc7d6346f
tree6d7ea6146e0697b95e658eab0ea6e23d493cc131
parenta3584f06098e427eb4a911db3b82736569919006
staging: comedi: das08: rename DAS08AO_AO_LSB() and DAS08AO_AO_MSB()

The `DAS08AO_AO_LSB(x)` macro returns the offset to the analog output
low byte register for channel x (0 or 1) for "AOL", "AOM", and "AOH"
boards.  The `DAS08AO_AO_MSB(x)` macro returns the offset to the
corresponding high byte register.  Rename the macros to
`DAS08AOX_AO_LSB_REG(x)` and `DAS08AOX_AO_MSB_REG(x)` respectively, and
add some comments.

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