[PATCH 21/21] staging: comedi: ni_at_ao: fix typo for DAC2S bit in the CFG2 register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This bit is called DAC2S not DACS in the user manual. Fix it.

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Cc: Ian Abbott <abbotti@xxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/staging/comedi/drivers/ni_at_ao.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/comedi/drivers/ni_at_ao.c b/drivers/staging/comedi/drivers/ni_at_ao.c
index e483c7e..33b5f68 100644
--- a/drivers/staging/comedi/drivers/ni_at_ao.c
+++ b/drivers/staging/comedi/drivers/ni_at_ao.c
@@ -48,7 +48,7 @@
 #define ATAO_CFG2_CALLD_NOP	(0 << 14)
 #define ATAO_CFG2_CALLD(x)	((((x) >> 3) + 1) << 14)
 #define ATAO_CFG2_FFRTEN	(1 << 13)
-#define ATAO_CFG2_DACS(x)	(1 << (((x) / 2) + 8))
+#define ATAO_CFG2_DAC2S(x)	(1 << (((x) / 2) + 8))
 #define ATAO_CFG2_LDAC(x)	(1 << (((x) / 2) + 3))
 #define ATAO_CFG2_PROMEN	(1 << 2)
 #define ATAO_CFG2_SCLK		(1 << 1)
@@ -172,7 +172,7 @@ static int atao_ao_insn_write(struct comedi_device *dev,
 
 	/* enable straight binary format for unipolar ranges */
 	if (comedi_range_is_unipolar(s, range))
-		outw(ATAO_CFG2_DACS(chan), dev->iobase + ATAO_CFG2_REG);
+		outw(ATAO_CFG2_DAC2S(chan), dev->iobase + ATAO_CFG2_REG);
 
 	if (chan == 0)
 		atao_select_reg_group(dev, 1);
-- 
1.8.3.2

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux