From: H Hartley Sweeten Date: Tue, 4 Nov 2014 17:53:49 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: tidy up CTR0 register defines X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~350 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e2e74e17a315d376292764b323e54ec21daa18e;p=pandora-kernel.git staging: comedi: addi_apci_3120: tidy up CTR0 register defines Define the CTR0 register in the main driver source file and remove all the old defines in hwrdv_apci3120.c. For aesthetics, save the raw digital output state (devpriv->do_bits) in the digital output (*insn_bits) function and use a macro to set them when reading/writing a timer. Use the CTR0 register define in the digital output (*insn_bits) function and remove the current register define. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed