summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2013-10-18 13:40:53 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-19 20:47:23 (GMT)
commit9349399333c982396021f861b69355782d4e555e (patch)
tree974be4164fac3c6467d77538ade8f83132c1a361 /drivers/staging
parent622ec01ab9e19729c43eb994003783cf5094fc09 (diff)
downloadlinux-fsl-qoriq-9349399333c982396021f861b69355782d4e555e.tar.xz
staging: comedi: s626: correct S626_CRAMSK_CLKPOL_A macro (unused)
The counter 'A' clock polarity field in the 'CRA' register is only 1 bit wide, but the `S626_CRAMSK_CLKPOL_A` macro shows it as 2 bits wide, which would overlap with the counter 'A' interrupt source field. This is harmless as the macro isn't actually used yet, but correct it anyway as I want to use it! Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/comedi/drivers/s626.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/s626.h b/drivers/staging/comedi/drivers/s626.h
index 5cb30af..bdecdfb 100644
--- a/drivers/staging/comedi/drivers/s626.h
+++ b/drivers/staging/comedi/drivers/s626.h
@@ -564,7 +564,7 @@
#define S626_CRAMSK_LOADSRC_A (3 << S626_CRABIT_LOADSRC_A)
#define S626_CRAMSK_CLKMULT_A (3 << S626_CRABIT_CLKMULT_A)
#define S626_CRAMSK_INTSRC_A (3 << S626_CRABIT_INTSRC_A)
-#define S626_CRAMSK_CLKPOL_A (3 << S626_CRABIT_CLKPOL_A)
+#define S626_CRAMSK_CLKPOL_A (1 << S626_CRABIT_CLKPOL_A)
#define S626_CRAMSK_INDXSRC_A (3 << S626_CRABIT_INDXSRC_A)
#define S626_CRAMSK_CNTSRC_A (3 << S626_CRABIT_CNTSRC_A)