mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 00:47:56 -04:00
staging: comedi: quatech_daqp_cs: there are 4 digital outputs
This board has 4 digital outputs not 1. Fix the subdevice init. The digital output lines are used for the external channel selection when the expansion mode is enabled. Add a comment about this. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
647d8aec47
commit
23d4f0245f
@@ -748,10 +748,17 @@ static int daqp_auto_attach(struct comedi_device *dev,
|
||||
s->maxdata = 1;
|
||||
s->insn_bits = daqp_di_insn_bits;
|
||||
|
||||
/*
|
||||
* Digital Output subdevice
|
||||
* NOTE: The digital output lines share the same pins on the
|
||||
* interface connector as the four external channel selection
|
||||
* bits. If expansion mode is used the digital outputs do not
|
||||
* work.
|
||||
*/
|
||||
s = &dev->subdevices[3];
|
||||
s->type = COMEDI_SUBD_DO;
|
||||
s->subdev_flags = SDF_WRITABLE;
|
||||
s->n_chan = 1;
|
||||
s->n_chan = 4;
|
||||
s->maxdata = 1;
|
||||
s->insn_bits = daqp_do_insn_bits;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user