Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337888
b: refs/heads/master
c: 07e9571
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent 98f5c48 commit 4ee66e6
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: 1567ceaa3f0e4207fcce46e5116752c9e2d8e294
refs/heads/master: 07e957120d79f41463023c302274ba26c994d789
10 changes: 5 additions & 5 deletions trunk/drivers/staging/comedi/drivers/addi_apci_1516.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct apci1516_boardinfo {
unsigned short device;
int di_nchan;
int do_nchan;
int has_timer;
int has_wdog;
};

static const struct apci1516_boardinfo apci1516_boardtypes[] = {
Expand All @@ -75,12 +75,12 @@ static const struct apci1516_boardinfo apci1516_boardtypes[] = {
.device = PCI_DEVICE_ID_APCI1516,
.di_nchan = 8,
.do_nchan = 8,
.has_timer = 1,
.has_wdog = 1,
}, {
.name = "apci2016",
.device = PCI_DEVICE_ID_APCI2016,
.do_nchan = 16,
.has_timer = 1,
.has_wdog = 1,
},
};

Expand Down Expand Up @@ -201,7 +201,7 @@ static int apci1516_reset(struct comedi_device *dev)
const struct apci1516_boardinfo *this_board = comedi_board(dev);
struct apci1516_private *devpriv = dev->private;

if (!this_board->has_timer)
if (!this_board->has_wdog)
return 0;

outw(0x0, dev->iobase + APCI1516_DO_REG);
Expand Down Expand Up @@ -283,7 +283,7 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,

/* Allocate and Initialise Timer Subdevice Structures */
s = &dev->subdevices[2];
if (this_board->has_timer) {
if (this_board->has_wdog) {
s->type = COMEDI_SUBD_TIMER;
s->subdev_flags = SDF_WRITEABLE;
s->n_chan = 1;
Expand Down

0 comments on commit 4ee66e6

Please sign in to comment.