Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324926
b: refs/heads/master
c: 4760904
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 6, 2012
1 parent 2f3cbe8 commit cd465d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 015ebbe86d223f55c45ea2bdaca0af69a0ddd0c4
refs/heads/master: 4760904fb4a2841c9ac651e36610724929122385
16 changes: 8 additions & 8 deletions trunk/drivers/staging/comedi/drivers/usbdux.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ static void usbduxsub_ai_IsocIrq(struct urb *urb)
/* the private structure of the subdevice is struct usbduxsub */
this_usbduxsub = this_comedidev->private;
/* subdevice which is the AD converter */
s = this_comedidev->subdevices + SUBDEV_AD;
s = &this_comedidev->subdevices[SUBDEV_AD];

/* first we test if something unusual has just happened */
switch (urb->status) {
Expand Down Expand Up @@ -604,7 +604,7 @@ static void usbduxsub_ao_IsocIrq(struct urb *urb)
/* the private structure of the subdevice is struct usbduxsub */
this_usbduxsub = this_comedidev->private;

s = this_comedidev->subdevices + SUBDEV_DA;
s = &this_comedidev->subdevices[SUBDEV_DA];

switch (urb->status) {
case 0:
Expand Down Expand Up @@ -1947,7 +1947,7 @@ static void usbduxsub_pwm_irq(struct urb *urb)
/* the private structure of the subdevice is struct usbduxsub */
this_usbduxsub = this_comedidev->private;

s = this_comedidev->subdevices + SUBDEV_DA;
s = &this_comedidev->subdevices[SUBDEV_DA];

switch (urb->status) {
case 0:
Expand Down Expand Up @@ -2331,7 +2331,7 @@ static int usbdux_attach_common(struct comedi_device *dev,
dev->private = udev;

/* the first subdevice is the A/D converter */
s = dev->subdevices + SUBDEV_AD;
s = &dev->subdevices[SUBDEV_AD];
/* the URBs get the comedi subdevice */
/* which is responsible for reading */
/* this is the subdevice which reads data */
Expand All @@ -2358,7 +2358,7 @@ static int usbdux_attach_common(struct comedi_device *dev,
s->range_table = (&range_usbdux_ai_range);

/* analog out */
s = dev->subdevices + SUBDEV_DA;
s = &dev->subdevices[SUBDEV_DA];
/* analog out */
s->type = COMEDI_SUBD_AO;
/* backward pointer */
Expand All @@ -2384,7 +2384,7 @@ static int usbdux_attach_common(struct comedi_device *dev,
s->insn_write = usbdux_ao_insn_write;

/* digital I/O */
s = dev->subdevices + SUBDEV_DIO;
s = &dev->subdevices[SUBDEV_DIO];
s->type = COMEDI_SUBD_DIO;
s->subdev_flags = SDF_READABLE | SDF_WRITABLE;
s->n_chan = 8;
Expand All @@ -2396,7 +2396,7 @@ static int usbdux_attach_common(struct comedi_device *dev,
s->private = NULL;

/* counter */
s = dev->subdevices + SUBDEV_COUNTER;
s = &dev->subdevices[SUBDEV_COUNTER];
s->type = COMEDI_SUBD_COUNTER;
s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = 4;
Expand All @@ -2407,7 +2407,7 @@ static int usbdux_attach_common(struct comedi_device *dev,

if (udev->high_speed) {
/* timer / pwm */
s = dev->subdevices + SUBDEV_PWM;
s = &dev->subdevices[SUBDEV_PWM];
s->type = COMEDI_SUBD_PWM;
s->subdev_flags = SDF_WRITABLE | SDF_PWM_HBRIDGE;
s->n_chan = 8;
Expand Down

0 comments on commit cd465d3

Please sign in to comment.