Commit e33048b0 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
 drivers/staging/comedi/drivers/mf6x4.c | 22 +++++++++++-----------
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0b7cbf14
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment