staging: comedi: dmm32at: rename DMM32AT_DACMSB_CHAN
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 11 Nov 2014 23:55:35 +0000 (16:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 23:33:24 +0000 (15:33 -0800)
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 <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dmm32at.c

index 2bfa21bb03e7552468ca1dcc63ad0ac9ceb05c05..8585069bc8feb693e366f44f6db205f5392e4b1c 100644 (file)
@@ -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 */
This page took 0.025582 seconds and 5 git commands to generate.