提交 269452dc 编写于 作者: I Ian Abbott 提交者: Greg Kroah-Hartman

staging: comedi: daqboard2000: remove commented out code

Remove some commented out code.  Some of it uses constructs that don't
exist in the driver, and probably come from the source code for the MS
Windows driver.
Signed-off-by: NIan Abbott <abbotti@mev.co.uk>
Reviewed-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 16948306
...@@ -278,9 +278,7 @@ struct daqboard2000_private { ...@@ -278,9 +278,7 @@ struct daqboard2000_private {
static void writeAcqScanListEntry(struct comedi_device *dev, u16 entry) static void writeAcqScanListEntry(struct comedi_device *dev, u16 entry)
{ {
/* udelay(4); */
writew(entry & 0x00ff, dev->mmio + acqScanListFIFO); writew(entry & 0x00ff, dev->mmio + acqScanListFIFO);
/* udelay(4); */
writew((entry >> 8) & 0x00ff, dev->mmio + acqScanListFIFO); writew((entry >> 8) & 0x00ff, dev->mmio + acqScanListFIFO);
} }
...@@ -315,13 +313,9 @@ static void setup_sampling(struct comedi_device *dev, int chan, int gain) ...@@ -315,13 +313,9 @@ static void setup_sampling(struct comedi_device *dev, int chan, int gain)
word3 = 0; word3 = 0;
break; break;
} }
/*
dev->eeprom.correctionDACSE[i][j][k].offset = 0x800;
dev->eeprom.correctionDACSE[i][j][k].gain = 0xc00;
*/
/* These should be read from EEPROM */ /* These should be read from EEPROM */
word2 |= 0x0800; word2 |= 0x0800; /* offset */
word3 |= 0xc000; word3 |= 0xc000; /* gain */
writeAcqScanListEntry(dev, word0); writeAcqScanListEntry(dev, word0);
writeAcqScanListEntry(dev, word1); writeAcqScanListEntry(dev, word1);
writeAcqScanListEntry(dev, word2); writeAcqScanListEntry(dev, word2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册