Skip to content

Commit

Permalink
staging: comedi: das08: Correct AO output for das08jr-16-ao
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent e6391a1 commit 61ed59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/das08.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) & 0xff;

chan = CR_CHAN(insn->chanspec);

Expand Down

0 comments on commit 61ed59e

Please sign in to comment.