staging: comedi: dmm32at: rename DMM32AT_CONV
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 11 Nov 2014 23:55:29 +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 for the Start A/D Conversion register.

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 df0a47fe0d11e9f8a5221fd882ba4c4a3ec26c36..ee6e510fef97d8f0ff8849efff08e16fb95c4ecc 100644 (file)
@@ -41,7 +41,7 @@ Configuration Options:
 #include "comedi_fc.h"
 
 /* Board register addresses */
-#define DMM32AT_CONV 0x00
+#define DMM32AT_AI_START_CONV_REG      0x00
 #define DMM32AT_AILSB 0x00
 #define DMM32AT_AUXDOUT 0x01
 #define DMM32AT_AIMSB 0x01
@@ -200,7 +200,7 @@ static int dmm32at_ai_insn_read(struct comedi_device *dev,
                return ret;
 
        for (i = 0; i < insn->n; i++) {
-               outb(0xff, dev->iobase + DMM32AT_CONV);
+               outb(0xff, dev->iobase + DMM32AT_AI_START_CONV_REG);
 
                ret = comedi_timeout(dev, s, insn, dmm32at_ai_status,
                                     DMM32AT_AISTAT);
@@ -365,7 +365,7 @@ static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
        } else {
                /* start the interrups and initiate a single scan */
                outb(DMM32AT_ADINT, dev->iobase + DMM32AT_INTCLOCK);
-               outb(0xff, dev->iobase + DMM32AT_CONV);
+               outb(0xff, dev->iobase + DMM32AT_AI_START_CONV_REG);
        }
 
        return 0;
This page took 0.026228 seconds and 5 git commands to generate.