aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-12-09 18:06:41 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-25 11:27:11 -0500
commitd687814867c12165eadb676a93af6a1e201ed494 (patch)
tree360be39093e92e7c5521fa7a03881410099572a0
parentdeb19aafd901b60f7192b1e16073ec6673d5c98b (diff)
staging: comedi: addi_apci_1032: fix subdevice type/flags bug
commit 90daf69a7a3f1d1a41018c799968a0bb896d65e0 upstream. The SDF_CMD_READ should be one of the s->subdev_flags not part of the s->type. 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>
-rw-r--r--drivers/staging/comedi/drivers/addi_apci_1032.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_1032.c b/drivers/staging/comedi/drivers/addi_apci_1032.c
index 3d4878facc26..d919a9863e01 100644
--- a/drivers/staging/comedi/drivers/addi_apci_1032.c
+++ b/drivers/staging/comedi/drivers/addi_apci_1032.c
@@ -332,8 +332,8 @@ static int apci1032_auto_attach(struct comedi_device *dev,
332 s = &dev->subdevices[1]; 332 s = &dev->subdevices[1];
333 if (dev->irq) { 333 if (dev->irq) {
334 dev->read_subdev = s; 334 dev->read_subdev = s;
335 s->type = COMEDI_SUBD_DI | SDF_CMD_READ; 335 s->type = COMEDI_SUBD_DI;
336 s->subdev_flags = SDF_READABLE; 336 s->subdev_flags = SDF_READABLE | SDF_CMD_READ;
337 s->n_chan = 1; 337 s->n_chan = 1;
338 s->maxdata = 1; 338 s->maxdata = 1;
339 s->range_table = &range_digital; 339 s->range_table = &range_digital;