Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324881
b: refs/heads/master
c: 27f7f10
h: refs/heads/master
i:
  324879: b9891e5
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 6, 2012
1 parent c6e3651 commit 8755750
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 2de13f1bac495eb354a442963dfc1eb5e7d5b134
refs/heads/master: 27f7f1002faae4034f86dd9d28ff8ecb4b8926ed
10 changes: 5 additions & 5 deletions trunk/drivers/staging/comedi/drivers/icp_multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ static int icp_multi_attach(struct comedi_device *dev,
subdev = 0;

if (this_board->n_aichan) {
s = dev->subdevices + subdev;
s = &dev->subdevices[subdev];
dev->read_subdev = s;
s->type = COMEDI_SUBD_AI;
s->subdev_flags = SDF_READABLE | SDF_COMMON | SDF_GROUND;
Expand All @@ -946,7 +946,7 @@ static int icp_multi_attach(struct comedi_device *dev,
}

if (this_board->n_aochan) {
s = dev->subdevices + subdev;
s = &dev->subdevices[subdev];
s->type = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_COMMON;
s->n_chan = this_board->n_aochan;
Expand All @@ -959,7 +959,7 @@ static int icp_multi_attach(struct comedi_device *dev,
}

if (this_board->n_dichan) {
s = dev->subdevices + subdev;
s = &dev->subdevices[subdev];
s->type = COMEDI_SUBD_DI;
s->subdev_flags = SDF_READABLE;
s->n_chan = this_board->n_dichan;
Expand All @@ -972,7 +972,7 @@ static int icp_multi_attach(struct comedi_device *dev,
}

if (this_board->n_dochan) {
s = dev->subdevices + subdev;
s = &dev->subdevices[subdev];
s->type = COMEDI_SUBD_DO;
s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = this_board->n_dochan;
Expand All @@ -986,7 +986,7 @@ static int icp_multi_attach(struct comedi_device *dev,
}

if (this_board->n_ctrs) {
s = dev->subdevices + subdev;
s = &dev->subdevices[subdev];
s->type = COMEDI_SUBD_COUNTER;
s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_COMMON;
s->n_chan = this_board->n_ctrs;
Expand Down

0 comments on commit 8755750

Please sign in to comment.