staging: comedi: daqboard2000: remove #if 0'ed out code in ao (*insn_write)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 25 Aug 2014 23:04:40 +0000 (16:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:22:33 +0000 (13:22 -0700)
This code has been disabled since it's initial commit. It must not be
needed so just remove it.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/daqboard2000.c

index 90fbb25e55ab61d99fec071b800413aedd42df4e..266c434ccf39a9051411eff8e869a836dff1802f 100644 (file)
@@ -441,14 +441,6 @@ static int daqboard2000_ao_insn_write(struct comedi_device *dev,
        int i;
 
        for (i = 0; i < insn->n; i++) {
-#if 0
-               /*
-                * OK, since it works OK without enabling the DAC's,
-                * let's keep it as simple as possible...
-                */
-               writew((chan + 2) * 0x0010 | 0x0001, dev->mmio + dacControl);
-               udelay(1000);
-#endif
                writew(data[i], dev->mmio + dacSetting(chan));
 
                ret = comedi_timeout(dev, s, insn, daqboard2000_ao_eoc, 0);
@@ -456,14 +448,6 @@ static int daqboard2000_ao_insn_write(struct comedi_device *dev,
                        return ret;
 
                devpriv->ao_readback[chan] = data[i];
-#if 0
-               /*
-                * Since we never enabled the DAC's, we don't need
-                * to disable it...
-                */
-               writew((chan + 2) * 0x0010 | 0x0000, dev->mmio + dacControl);
-               udelay(1000);
-#endif
        }
 
        return i;