]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: adl_pci9118: tidy up analog output register defines
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 4 Sep 2014 19:14:13 +0000 (12:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:55:53 +0000 (13:55 -0700)
commit45b46e1893b62fdec096ee8dd0f0e3738a246b4a
treeeb70af145273905fc92a8c084116538c7d1a8641
parent150d6ac6f9de50306974671216cd65949c22cfc9
staging: comedi: adl_pci9118: tidy up analog output register defines

Replace the current defines with a macro that calculates the correct
register offset based on the channel.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci9118.c