mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 23:29:10 -04:00
staging: comedi: adl_pci9118: ai (*insn_read) does not use interrupts
The analog input (*insn_read) in this driver is done as a software-triggered, polled operation. The PCI9118_AI_CTRL_INT bit in the control register, which is actually set in setup_channel_list(), should not be set. 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5358e8996f
commit
bdbeaed3f8
@@ -483,7 +483,7 @@ static int pci9118_insn_read_ai(struct comedi_device *dev,
|
||||
int ret;
|
||||
int n;
|
||||
|
||||
devpriv->AdControlReg = PCI9118_AI_CTRL_INT;
|
||||
devpriv->AdControlReg = 0;
|
||||
devpriv->AdFunctionReg = PCI9118_AI_CFG_PDTRG | PCI9118_AI_CFG_PETRG;
|
||||
outl(devpriv->AdFunctionReg, dev->iobase + PCI9118_AI_CFG_REG);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user