staging: comedi: ni_labpc: rename boardinfo 'memory_mapped_io'

Rename the boardinfo 'memory_mapped_io' to 'has_mmio'.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
H Hartley Sweeten 2013-03-22 09:42:18 -07:00 committed by Greg Kroah-Hartman
parent d0baa0c117
commit 4d3cc8ab55
2 changed files with 5 additions and 5 deletions

View File

@ -350,7 +350,7 @@ static const struct labpc_boardinfo labpc_boards[] = {
.ai_range_code = labpc_1200_ai_gain_bits, .ai_range_code = labpc_1200_ai_gain_bits,
.ai_range_is_unipolar = labpc_1200_is_unipolar, .ai_range_is_unipolar = labpc_1200_is_unipolar,
.ai_scan_up = 1, .ai_scan_up = 1,
.memory_mapped_io = 1, .has_mmio = 1,
}, },
#endif #endif
}; };
@ -843,7 +843,7 @@ static inline int labpc_counter_load(struct comedi_device *dev,
{ {
const struct labpc_boardinfo *board = comedi_board(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, return i8254_mm_load((void __iomem *)base_address, 0,
counter_number, count, mode); counter_number, count, mode);
else else
@ -1688,7 +1688,7 @@ int labpc_common_attach(struct comedi_device *dev, unsigned long iobase,
} }
dev->iobase = iobase; dev->iobase = iobase;
if (board->memory_mapped_io) { if (board->has_mmio) {
devpriv->read_byte = labpc_readb; devpriv->read_byte = labpc_readb;
devpriv->write_byte = labpc_writeb; devpriv->write_byte = labpc_writeb;
} else { } else {
@ -1798,7 +1798,7 @@ int labpc_common_attach(struct comedi_device *dev, unsigned long iobase,
s = &dev->subdevices[2]; s = &dev->subdevices[2];
/* if board uses io memory we have to give a custom callback /* if board uses io memory we have to give a custom callback
* function to the 8255 driver */ * function to the 8255 driver */
if (board->memory_mapped_io) if (board->has_mmio)
subdev_8255_init(dev, s, labpc_dio_mem_callback, subdev_8255_init(dev, s, labpc_dio_mem_callback,
(unsigned long)(dev->iobase + DIO_BASE_REG)); (unsigned long)(dev->iobase + DIO_BASE_REG));
else else

View File

@ -50,7 +50,7 @@ struct labpc_boardinfo {
unsigned ai_scan_up:1; unsigned ai_scan_up:1;
/* uses memory mapped io instead of ioports */ /* uses memory mapped io instead of ioports */
unsigned memory_mapped_io:1; unsigned has_mmio:1;
}; };
struct labpc_private { struct labpc_private {