]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: rti800: swap val and mask when reading ai data
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Apr 2013 01:21:02 +0000 (18:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2013 23:29:25 +0000 (16:29 -0700)
commitaac49c3417dc9378cbcead70c671d79cd626709f
tree97de3ad5e279b73083f3be34e9377da4479802dd
parentc7c1161dfd98c00a1fa4691057b7418b8c26a1f2
staging: comedi: rti800: swap val and mask when reading ai data

The (mask & val) operation when reading the high 4-bits of the analog
data looks strange. Change it to (val & mask).

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/rti800.c