Merge branch 'next/drivers' into HEAD
[deliverable/linux.git] / drivers / staging / comedi / drivers / c6xdigio.c
index 41ed8576f301c68df6bde4dab8fc157642e684d7..070037c22db7ab25b7787b6179d01132c0b3e2c3 100644 (file)
@@ -447,7 +447,7 @@ static int c6xdigio_attach(struct comedi_device *dev,
        else if (irq == 0)
                printk(KERN_DEBUG "comedi%d: no irq\n", dev->minor);
 
-       s = dev->subdevices + 0;
+       s = &dev->subdevices[0];
        /* pwm output subdevice */
        s->type = COMEDI_SUBD_AO;       /*  Not sure what to put here */
        s->subdev_flags = SDF_WRITEABLE;
@@ -458,7 +458,7 @@ static int c6xdigio_attach(struct comedi_device *dev,
        s->maxdata = 500;
        s->range_table = &range_bipolar10;      /*  A suitable lie */
 
-       s = dev->subdevices + 1;
+       s = &dev->subdevices[1];
        /* encoder (counter) subdevice */
        s->type = COMEDI_SUBD_COUNTER;
        s->subdev_flags = SDF_READABLE | SDF_LSAMPL;
@@ -468,7 +468,7 @@ static int c6xdigio_attach(struct comedi_device *dev,
        s->maxdata = 0xffffff;
        s->range_table = &range_unknown;
 
-       /*      s = dev->subdevices + 2; */
+       /*      s = &dev->subdevices[2]; */
        /* pwm output subdevice */
        /*      s->type = COMEDI_SUBD_COUNTER;  // Not sure what to put here */
        /*      s->subdev_flags = SDF_WRITEABLE; */
This page took 0.027053 seconds and 5 git commands to generate.