]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: comedi: adv_pci1710: Correct AI scan count and channel checks
authorIan Abbott <abbotti@mev.co.uk>
Wed, 20 Jan 2010 13:04:47 +0000 (13:04 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:47 +0000 (16:42 -0800)
commita37d38f92eff173254a58b0f4d60119cd962357e
tree5d067f4f638d7723ccb99e22401764234398c61d
parent85213d5bcc8724c7b2d1b310fbbb73183d0bc8d8
Staging: comedi: adv_pci1710: Correct AI scan count and channel checks

For AI commands, the internal channel list used to check incoming
data was only set up partially if the channel list contained
repeats.  Set it up fully.  Also the current scan position was not
updated properly when moving a block of data from the FIFO unless
a whole number of scans was moved.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/adv_pci1710.c