aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH Hartley Sweeten <[email protected]>2014-11-11 16:55:35 -0700
committerGreg Kroah-Hartman <[email protected]>2014-11-26 15:33:24 -0800
commite46f7651d0e34ac4fbc208bb70c7d6d6166742f3 (patch)
tree25a9e11f0af6f75452e0507b2e58b6b829151050
parent668a02d1c8bc6c635e6ce215f1c8c6bed3e0dc07 (diff)
staging: comedi: dmm32at: rename DMM32AT_DACMSB_CHAN
For aesthetics, rename this define used to set the DACH[10] bits in the DAC MSB register to select the D/A channel. Signed-off-by: H Hartley Sweeten <[email protected]> Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/comedi/drivers/dmm32at.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c
index 2bfa21bb03e7..8585069bc8fe 100644
--- a/drivers/staging/comedi/drivers/dmm32at.c
+++ b/drivers/staging/comedi/drivers/dmm32at.c
@@ -59,7 +59,7 @@ Configuration Options:
#define DMM32AT_AUX_DI0 (1 << 0) /* J3.48 - CLK0 (SRC0) */
#define DMM32AT_AO_LSB_REG 0x04
#define DMM32AT_AO_MSB_REG 0x05
-#define DMM32AT_DACMSB_CHAN(x) ((x) << 6)
+#define DMM32AT_AO_MSB_DACH(x) ((x) << 6)
#define DMM32AT_FIFOCNTRL 0x07
#define DMM32AT_FIFOSTAT 0x07
@@ -447,7 +447,7 @@ static int dmm32at_ao_insn_write(struct comedi_device *dev,
/* write LSB then MSB + chan to load DAC */
outb(val & 0xff, dev->iobase + DMM32AT_AO_LSB_REG);
- outb((val >> 8) | DMM32AT_DACMSB_CHAN(chan),
+ outb((val >> 8) | DMM32AT_AO_MSB_DACH(chan),
dev->iobase + DMM32AT_AO_MSB_REG);
/* wait for circuit to settle */