Commit cb4d9e9e authored by Ian Abbott's avatar Ian Abbott Committed by Willy Tarreau

staging: comedi: das08: Correct AO output for das08jr-16-ao

commit 61ed59ed upstream.

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.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent 57d87ddb
......@@ -652,7 +652,7 @@ static int das08jr_ao_winsn(struct comedi_device *dev,
int chan;
lsb = data[0] & 0xff;
msb = (data[0] >> 8) & 0xf;
msb = (data[0] >> 8) & 0xff;
chan = CR_CHAN(insn->chanspec);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment