comedi vmk80xx: simplify rinsn output calculation
commit9dc99895ef2bd96bad9674e4a0a6228c0690c912
authorJ. Ali Harlow <ali@avrc.city.ac.uk>
Wed, 18 May 2011 18:18:53 +0000 (18 19:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 May 2011 21:32:06 +0000 (18 14:32 -0700)
tree6262aa0763a8a7c24ac9213497d7f6940c8538c0
parent85a2f34f4ecd48ce27f8ecc2d58ab66c05d55a9a
comedi vmk80xx: simplify rinsn output calculation

vmk80xx_di_rinsn() and vmk80xx_do_rinsn() extract the required channel
data by inconsistent and overly-complex algorithms. Simplify them both.

Signed-off-by: J. Ali Harlow <ali@avrc.city.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/vmk80xx.c