staging: comedi: ni_65xx: filter interval register is 32-bit

According to the register programming manual, the filter interval
register is 32-bit. Fix the writes to this register.

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:
H Hartley Sweeten 2014-07-14 12:06:51 -07:00 committed by Greg Kroah-Hartman
parent 0f9e530120
commit 16b2a37895
1 changed files with 2 additions and 2 deletions

View File

@ -299,7 +299,7 @@ static int ni_65xx_config_filter(struct comedi_device *dev,
data[1] = interval * filter_resolution_ns;
if (interval != devpriv->filter_interval) {
writeb(interval, devpriv->mmio + Filter_Interval);
writel(interval, devpriv->mmio + Filter_Interval);
devpriv->filter_interval = interval;
}
@ -689,7 +689,7 @@ static int ni_65xx_auto_attach(struct comedi_device *dev,
writeb(0x00, devpriv->mmio + Master_Interrupt_Control);
/* Set filter interval to 0 (32bit reg) */
writeb(0x00000000, devpriv->mmio + Filter_Interval);
writel(0x00000000, devpriv->mmio + Filter_Interval);
ret = request_irq(dev->irq, ni_65xx_interrupt, IRQF_SHARED,
"ni_65xx", dev);