staging: comedi: rtd520: convert DAC register defines to macros
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 25 Sep 2015 00:52:07 +0000 (17:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:32:22 +0000 (03:32 +0200)
commit78c1652c7eeac2dff6961678e60c3d792cbe83b5
treea96e86bbcf33ba2875cec248941d825d61ca12bd
parent4ddf02bfd89e43dec940fa3f10c309f69888eda2
staging: comedi: rtd520: convert DAC register defines to macros

For aesthetics, convert the defines for the various DAC registers into
macros that take the comedi channel and return the correct offset.

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