]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: drivers: digital output subdevices do not need SDF_READABLE
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 30 Oct 2014 18:19:36 +0000 (11:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Nov 2014 00:30:04 +0000 (16:30 -0800)
The SDF_READABLE flag is not necessary for digital output subdevices. For
consistency, remove this flag from the comedi drivers that set it.

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/adl_pci9111.c
drivers/staging/comedi/drivers/amplc_pc263.c
drivers/staging/comedi/drivers/amplc_pci263.c
drivers/staging/comedi/drivers/cb_pcidas64.c
drivers/staging/comedi/drivers/das08.c
drivers/staging/comedi/drivers/das16m1.c
drivers/staging/comedi/drivers/das1800.c
drivers/staging/comedi/drivers/das800.c
drivers/staging/comedi/drivers/icp_multi.c

index 18f5f7fc1bc84c1188f92d6b6033de9da278317d..1fd082bf757dbd5cfa8f6778f193a724dee8d59d 100644 (file)
@@ -767,7 +767,7 @@ static int pci9111_auto_attach(struct comedi_device *dev,
 
        s = &dev->subdevices[3];
        s->type         = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_READABLE | SDF_WRITABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan       = 16;
        s->maxdata      = 1;
        s->range_table  = &range_digital;
index f8e551d8fd9eaa0710cfc752a1da156d503cf5e9..b1946ce6ecc12c0153810a742b52b8f3596cad48 100644 (file)
@@ -83,7 +83,7 @@ static int pc263_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        s = &dev->subdevices[0];
        /* digital output subdevice */
        s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_READABLE | SDF_WRITABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan = 16;
        s->maxdata = 1;
        s->range_table = &range_digital;
index 2259bee98d48d1951192935ccf9f4e479dd9857f..0d2224b832ac6665256bb8ef799d81511109f46c 100644 (file)
@@ -71,7 +71,7 @@ static int pci263_auto_attach(struct comedi_device *dev,
        s = &dev->subdevices[0];
        /* digital output subdevice */
        s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_READABLE | SDF_WRITABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan = 16;
        s->maxdata = 1;
        s->range_table = &range_digital;
index 9196680581b8631b81bb2c35a2b61666d24b6ec2..c8515d7f249bcee6abbcb8290332c8ab25fdc2c3 100644 (file)
@@ -3868,7 +3868,7 @@ static int setup_subdevices(struct comedi_device *dev)
        if (thisboard->layout == LAYOUT_64XX) {
                s = &dev->subdevices[3];
                s->type = COMEDI_SUBD_DO;
-               s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
+               s->subdev_flags = SDF_WRITABLE;
                s->n_chan = 4;
                s->maxdata = 1;
                s->range_table = &range_digital;
index bdb671a66e226556969e717b09e1f1c5482776f6..cdf71f9f199cff755a1ef4e3d5847aeacf0291e8 100644 (file)
@@ -507,7 +507,7 @@ int das08_common_attach(struct comedi_device *dev, unsigned long iobase)
        /* do */
        if (thisboard->do_nchan) {
                s->type = COMEDI_SUBD_DO;
-               s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
+               s->subdev_flags = SDF_WRITABLE;
                s->n_chan = thisboard->do_nchan;
                s->maxdata = 1;
                s->range_table = &range_digital;
index 54ccffca8497c6b4d23bb1aa743aa45e0abc0fa6..80f41b7e8273540eb979e43b28e92a74ff8664fa 100644 (file)
@@ -597,7 +597,7 @@ static int das16m1_attach(struct comedi_device *dev,
        s = &dev->subdevices[2];
        /* do */
        s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan = 4;
        s->maxdata = 1;
        s->range_table = &range_digital;
index 246a186482235975dd1edd6343b635deb0cf9626..bf8bfcf7034d65a27aed7ef37f4e6658b4598a94 100644 (file)
@@ -1513,7 +1513,7 @@ static int das1800_attach(struct comedi_device *dev,
        /* do */
        s = &dev->subdevices[3];
        s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan = thisboard->do_n_chan;
        s->maxdata = 1;
        s->range_table = &range_digital;
index 6013099891c0a9004e6bab9cc2db04571b13a47f..55bc494838b53c53a6ab3fc0471598e80843cb26 100644 (file)
@@ -737,7 +737,7 @@ static int das800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        /* Digital Output subdevice */
        s = &dev->subdevices[2];
        s->type         = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan       = 4;
        s->maxdata      = 1;
        s->range_table  = &range_digital;
index f9aa6a59c9a8b9adcb50b53919d921e328393524..a412394bcdc92160216b3a23480fc60e50175ebd 100644 (file)
@@ -512,7 +512,7 @@ static int icp_multi_auto_attach(struct comedi_device *dev,
 
        s = &dev->subdevices[3];
        s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan = 8;
        s->maxdata = 1;
        s->len_chanlist = 8;