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