From: H Hartley Sweeten Date: Tue, 6 Oct 2015 18:11:07 +0000 (-0700) Subject: staging: comedi: mf6x4: remove unnecessary defines X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e33048b07903435d72cfba7463411a2241d42c20;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: mf6x4: remove unnecessary defines 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 drivers/staging/comedi/drivers/mf6x4.c | 22 +++++++++++----------- Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/mf6x4.c b/drivers/staging/comedi/drivers/mf6x4.c index 817e8bf8f141..a73a7c56fd0c 100644 --- a/drivers/staging/comedi/drivers/mf6x4.c +++ b/drivers/staging/comedi/drivers/mf6x4.c @@ -48,15 +48,6 @@ #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 */