staging: comedi: mf6x4: remove unnecessary defines
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 6 Oct 2015 18:11:07 +0000 (11:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 05:55:31 +0000 (22:55 -0700)
The MF6X4_DAC_R macro defines the offsets for all the DAC registers.
Remove the unnecessary defines for each register.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
 drivers/staging/comedi/drivers/mf6x4.c | 22 +++++++++++-----------
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/mf6x4.c

index 817e8bf8f1419ae0ddebb91d3591880ad223ab16..a73a7c56fd0cfa0c461b76d8b4fda7c28bb9c06c 100644 (file)
 #define MF6X4_ADCTRL_R                                 0x00
 #define MF6X4_ADCTRL_M                                 0xff
 
-#define MF6X4_DA0_R                                    0x20
-#define MF6X4_DA1_R                                    0x22
-#define MF6X4_DA2_R                                    0x24
-#define MF6X4_DA3_R                                    0x26
-#define MF6X4_DA4_R                                    0x28
-#define MF6X4_DA5_R                                    0x2a
-#define MF6X4_DA6_R                                    0x2c
-#define MF6X4_DA7_R                                    0x2e
-/* Map DAC cahnnel id to real HW-dependent offset value */
 #define MF6X4_DAC_R(x)                                 (0x20 + ((x) * 2))
 
 /* BAR2 registers */