Staging: comedi: addi-data: tidy up digital input register map defines in hwdrv_apci1...
authorChase Southwood <chase.southwood@yahoo.com>
Fri, 7 Mar 2014 08:37:05 +0000 (02:37 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 01:28:53 +0000 (17:28 -0800)
commit7df867327d742eba1d53303171521d5dcd330ecc
treef3007ce6c34a2ba6622532c668c3e731e4b5af05
parentbf9aac535e3142f6a48c1695d06353fccc3bd6ad
Staging: comedi: addi-data: tidy up digital input register map defines in hwdrv_apci1564.c

This patch fixes the register map defines for the digital input registers
such that they are all the real offsets to each register, rather than a
mix of real offsets and adders to those offsets.

Further, some of the old defines were being used incorrectly in the
i_APCI1564_Reset() function.  Upon swapping the old defines out for the
new ones in this function, their use has been corrected.

Signed-off-by: Chase Southwood <chase.southwood@yahoo.com>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c