Commit 05ffb11c authored by Deepak R Varma's avatar Deepak R Varma Committed by Greg Kroah-Hartman

staging: comedi: dt282x: remove old unused code

There are two #if 0 blocks that have no recent history of any change.
Remove those code blocks for improved readability of the code.
Signed-off-by: default avatarDeepak R Varma <mh12gx2825@gmail.com>
Link: https://lore.kernel.org/r/20200310212545.GA8914@deeUbuntuSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c9edd297
...@@ -484,14 +484,7 @@ static void dt282x_ai_dma_interrupt(struct comedi_device *dev, ...@@ -484,14 +484,7 @@ static void dt282x_ai_dma_interrupt(struct comedi_device *dev,
s->async->events |= COMEDI_CB_EOA; s->async->events |= COMEDI_CB_EOA;
return; return;
} }
#if 0
/* clear the dual dma flag, making this the last dma segment */
/* XXX probably wrong */
if (!devpriv->ntrig) {
devpriv->supcsr &= ~DT2821_SUPCSR_DDMA;
outw(devpriv->supcsr, dev->iobase + DT2821_SUPCSR_REG);
}
#endif
/* restart the channel */ /* restart the channel */
dt282x_prep_ai_dma(dev, dma->cur_dma, 0); dt282x_prep_ai_dma(dev, dma->cur_dma, 0);
...@@ -534,28 +527,7 @@ static irqreturn_t dt282x_interrupt(int irq, void *d) ...@@ -534,28 +527,7 @@ static irqreturn_t dt282x_interrupt(int irq, void *d)
s_ao->async->events |= COMEDI_CB_ERROR; s_ao->async->events |= COMEDI_CB_ERROR;
handled = 1; handled = 1;
} }
#if 0
if (adcsr & DT2821_ADCSR_ADDONE) {
unsigned short data;
data = inw(dev->iobase + DT2821_ADDAT_REG);
data &= s->maxdata;
if (devpriv->ad_2scomp)
data = comedi_offset_munge(s, data);
comedi_buf_write_samples(s, &data, 1);
devpriv->nread--;
if (!devpriv->nread) {
s->async->events |= COMEDI_CB_EOA;
} else {
if (supcsr & DT2821_SUPCSR_SCDN)
outw(devpriv->supcsr | DT2821_SUPCSR_STRIG,
dev->iobase + DT2821_SUPCSR_REG);
}
handled = 1;
}
#endif
comedi_handle_events(dev, s); comedi_handle_events(dev, s);
if (s_ao) if (s_ao)
comedi_handle_events(dev, s_ao); comedi_handle_events(dev, s_ao);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment