From: H Hartley Sweeten Date: Mon, 12 Oct 2015 19:16:34 +0000 (-0700) Subject: staging: comedi: aio_aio12_8: analog outputs are single-ended X-Git-Tag: v4.13~4239^2~718 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=1198f6b09f05e1aef96e59c6af359dffa6d926e1;p=mirror_ubuntu-bionic-kernel.git staging: comedi: aio_aio12_8: analog outputs are single-ended The analog outputs are all single-ended. Remove the SDF_DIFF subdev_flag from the subdevice initialization. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/aio_aio12_8.c b/drivers/staging/comedi/drivers/aio_aio12_8.c index f9a90e5259c6..2262da0d21b4 100644 --- a/drivers/staging/comedi/drivers/aio_aio12_8.c +++ b/drivers/staging/comedi/drivers/aio_aio12_8.c @@ -234,7 +234,7 @@ static int aio_aio12_8_attach(struct comedi_device *dev, if (board->ao_nchan) { /* Analog output subdevice */ s->type = COMEDI_SUBD_AO; - s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_DIFF; + s->subdev_flags = SDF_WRITABLE | SDF_GROUND; s->n_chan = 4; s->maxdata = 0x0fff; s->range_table = &aio_aio12_8_range;