Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363711
b: refs/heads/master
c: 4d3cc8a
h: refs/heads/master
i:
  363709: 5967ccb
  363707: aef053b
  363703: f968112
  363695: acb1283
  363679: 5466673
  363647: ebd7047
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Mar 25, 2013
1 parent c0edbe0 commit e58d2da
Show file tree
Hide file tree
Showing 3 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: d0baa0c11701ae0f813cbdf32cbe54e90f8f4958
refs/heads/master: 4d3cc8ab551af2452705cbccd0165dcdf1862196
8 changes: 4 additions & 4 deletions trunk/drivers/staging/comedi/drivers/ni_labpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static const struct labpc_boardinfo labpc_boards[] = {
.ai_range_code = labpc_1200_ai_gain_bits,
.ai_range_is_unipolar = labpc_1200_is_unipolar,
.ai_scan_up = 1,
.memory_mapped_io = 1,
.has_mmio = 1,
},
#endif
};
Expand Down Expand Up @@ -843,7 +843,7 @@ static inline int labpc_counter_load(struct comedi_device *dev,
{
const struct labpc_boardinfo *board = comedi_board(dev);

if (board->memory_mapped_io)
if (board->has_mmio)
return i8254_mm_load((void __iomem *)base_address, 0,
counter_number, count, mode);
else
Expand Down Expand Up @@ -1688,7 +1688,7 @@ int labpc_common_attach(struct comedi_device *dev, unsigned long iobase,
}
dev->iobase = iobase;

if (board->memory_mapped_io) {
if (board->has_mmio) {
devpriv->read_byte = labpc_readb;
devpriv->write_byte = labpc_writeb;
} else {
Expand Down Expand Up @@ -1798,7 +1798,7 @@ int labpc_common_attach(struct comedi_device *dev, unsigned long iobase,
s = &dev->subdevices[2];
/* if board uses io memory we have to give a custom callback
* function to the 8255 driver */
if (board->memory_mapped_io)
if (board->has_mmio)
subdev_8255_init(dev, s, labpc_dio_mem_callback,
(unsigned long)(dev->iobase + DIO_BASE_REG));
else
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/comedi/drivers/ni_labpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct labpc_boardinfo {
unsigned ai_scan_up:1;

/* uses memory mapped io instead of ioports */
unsigned memory_mapped_io:1;
unsigned has_mmio:1;
};

struct labpc_private {
Expand Down

0 comments on commit e58d2da

Please sign in to comment.