From: H Hartley Sweeten Date: Tue, 4 Mar 2014 18:30:23 +0000 (-0700) Subject: staging: comedi: pcl812: tidy up the remaining register defines X-Git-Tag: v3.15-rc1~139^2~620 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=10a2c50278d23c62e275b6c79d6a1ec023e1999e;p=karo-tx-linux.git staging: comedi: pcl812: tidy up the remaining register defines The PCL812_CNTENABLE define is not used in this driver. Remove it. For aesthetics, rename the software trigger register. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcl812.c b/drivers/staging/comedi/drivers/pcl812.c index 0eb8d294d121..2487d44304b0 100644 --- a/drivers/staging/comedi/drivers/pcl812.c +++ b/drivers/staging/comedi/drivers/pcl812.c @@ -131,6 +131,9 @@ #define boardACL8216 8 /* and ICP DAS A-826PG */ #define boardA821 9 /* PGH, PGL, PGL/NDA versions */ +/* + * Register I/O map + */ #define PCL812_TIMER_BASE 0x00 #define PCL812_AI_LSB_REG 0x04 #define PCL812_AI_MSB_REG 0x05 @@ -151,8 +154,7 @@ #define PCL812_CTRL_SOFT_TRIG (1 << 0) #define PCL812_CTRL_PACER_DMA_TRIG (2 << 0) #define PCL812_CTRL_PACER_EOC_TRIG (6 << 0) -#define PCL812_CNTENABLE 10 -#define PCL812_SOFTTRIG 12 +#define PCL812_SOFTTRIG_REG 0x0c #define PCL812_DO_LSB_REG 0x0d #define PCL812_DO_MSB_REG 0x0e @@ -679,7 +681,7 @@ static void pcl812_ai_clear_eoc(struct comedi_device *dev) static void pcl812_ai_soft_trig(struct comedi_device *dev) { /* writing any value triggers a software conversion */ - outb(255, dev->iobase + PCL812_SOFTTRIG); + outb(255, dev->iobase + PCL812_SOFTTRIG_REG); } static unsigned int pcl812_ai_get_sample(struct comedi_device *dev,