Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c1dcce9 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: quatech_daqp_cs: ao subdevice does not support commands



The analog output subdevice does not support aynchronous commands.
Don't set the dev->write_subdev to this subdevice.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 25736670
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -763,7 +763,6 @@ static int daqp_auto_attach(struct comedi_device *dev,
	s->cancel	= daqp_ai_cancel;
	s->cancel	= daqp_ai_cancel;


	s = &dev->subdevices[1];
	s = &dev->subdevices[1];
	dev->write_subdev = s;
	s->private	= local;
	s->private	= local;
	s->type		= COMEDI_SUBD_AO;
	s->type		= COMEDI_SUBD_AO;
	s->subdev_flags	= SDF_WRITEABLE;
	s->subdev_flags	= SDF_WRITEABLE;