From: H Hartley Sweeten Date: Tue, 4 Mar 2014 18:29:39 +0000 (-0700) Subject: staging: comedi: pcl818: fix PCL818_FI_DATAHI X-Git-Tag: v3.15-rc1~139^2~664 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=61ef4719ea7cb3c019c5eefb73eb37390cb55db6;p=karo-tx-linux.git staging: comedi: pcl818: fix PCL818_FI_DATAHI The A/D FIFO uses two registers to get each analog data sample. PCL818_FI_DATALO is the LSB of the data and PCL818_FI_DATAHI is the MSB of the data. The current define for PCL818_FI_DATAHI is incorrect and results in the LSB getting read twice. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcl818.c b/drivers/staging/comedi/drivers/pcl818.c index 42448d22ac9f..aff87924b03b 100644 --- a/drivers/staging/comedi/drivers/pcl818.c +++ b/drivers/staging/comedi/drivers/pcl818.c @@ -161,7 +161,7 @@ A word or two about DMA. Driver support DMA operations at two ways: #define PCL818_FI_STATUS 25 /* R: one record from FIFO */ #define PCL818_FI_DATALO 23 -#define PCL818_FI_DATAHI 23 +#define PCL818_FI_DATAHI 24 /* type of interrupt handler */ #define INT_TYPE_AI1_INT 1