staging: comedi: aio_aio12_8: analog outputs are single-ended
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 12 Oct 2015 19:16:34 +0000 (12:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 17:26:06 +0000 (10:26 -0700)
The analog outputs are all single-ended. Remove the SDF_DIFF
subdev_flag from the subdevice initialization.

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>
drivers/staging/comedi/drivers/aio_aio12_8.c

index f9a90e5259c63ac4324f1a72ec6d1e3a408d4ad6..2262da0d21b4b62aa97269c28d9c2784d079da56 100644 (file)
@@ -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;