projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6391a1
)
staging: comedi: das08: Correct AO output for das08jr-16-ao
author
Ian Abbott
<abbotti@mev.co.uk>
Fri, 31 Aug 2012 19:41:30 +0000
(20:41 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 18:55:38 +0000
(11:55 -0700)
Don't zero out bits 15..12 of the data value in `das08jr_ao_winsn()` as
that knobbles the upper three-quarters of the output range for the
'das08jr-16-ao' board.
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das08.c
patch
|
blob
|
history
diff --git
a/drivers/staging/comedi/drivers/das08.c
b/drivers/staging/comedi/drivers/das08.c
index
e5eb3b9
..
67a914a
100644
(file)
--- a/
drivers/staging/comedi/drivers/das08.c
+++ b/
drivers/staging/comedi/drivers/das08.c
@@
-378,7
+378,7
@@
das08jr_ao_winsn(struct comedi_device *dev, struct comedi_subdevice *s,
int chan;
lsb = data[0] & 0xff;
- msb = (data[0] >> 8) & 0xf;
+ msb = (data[0] >> 8) & 0xf
f
;
chan = CR_CHAN(insn->chanspec);