Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317676
b: refs/heads/master
c: 2be0366
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 6, 2012
1 parent d75d277 commit f38c545
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 289a40339149300c42308afd917a5c9dbbc9bcd9
refs/heads/master: 2be036653663f809d1034d365f8285a967e589da
4 changes: 1 addition & 3 deletions trunk/drivers/staging/comedi/drivers/ni_670x.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ struct ni_670x_private {
unsigned int ao_readback[32];
};

#define n_ni_670x_boards ARRAY_SIZE(ni_670x_boards)

static struct comedi_lrange range_0_20mA = { 1, {RANGE_mA(0, 20)} };

static int ni_670x_ao_winsn(struct comedi_device *dev,
Expand Down Expand Up @@ -210,7 +208,7 @@ static int ni_670x_find_device(struct comedi_device *dev, int bus, int slot)
continue;
}

for (i = 0; i < n_ni_670x_boards; i++) {
for (i = 0; i < ARRAY_SIZE(ni_670x_boards); i++) {
if (mite_device_id(mite) == ni_670x_boards[i].dev_id) {
dev->board_ptr = ni_670x_boards + i;
devpriv->mite = mite;
Expand Down

0 comments on commit f38c545

Please sign in to comment.