me4000: Correct previous change to INSN_CONFIG.
authorIan Abbott <abbotti@mev.co.uk>
Mon, 9 Jan 2012 15:30:25 +0000 (15:30 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 9 Jan 2012 15:30:25 +0000 (15:30 +0000)
I messed up the previous change to me4000.c on 2011-12-15 which meant
that INSN_CONFIG_DIO_INPUT behaved like INSN_CONFIG_DIO_OUTPUT and vice
versa!  Fix it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/drivers/me4000.c

index eb45b483c994b89eaf97c06107bdc080ac4fd01f..8044f614e4a955564d7ed6e307267600eb27270d 100644 (file)
@@ -2072,7 +2072,7 @@ static int me4000_dio_insn_config(comedi_device * dev,
 
        tmp = me4000_inl(dev, info->dio_context.ctrl_reg);
 
-       if (data[0] == INSN_CONFIG_DIO_INPUT) {
+       if (data[0] == INSN_CONFIG_DIO_OUTPUT) {
                if (chan < 8) {
                        s->io_bits |= 0xFF;
                        tmp &= ~(ME4000_DIO_CTRL_BIT_MODE_0 |