staging: comedi: add an 'mmio' member to comedi_device
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 29 Jul 2014 22:01:20 +0000 (15:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:55:14 +0000 (16:55 -0700)
All the comedi drivers that use memory mapped io currently have a
void __iomem * member in their private data for the driver. For
some of the drivers this is actually the only member in that data.

For convienence, add a new member to the comedi_device for this
void __iomem *.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedidev.h
drivers/staging/comedi/drivers.c

index f3999f5e809183c5163d3d25fd8221a9cd634a90..58e58a32e93db35251af80ec507565bbac7e97dd 100644 (file)
@@ -253,6 +253,7 @@ struct comedi_device {
        struct comedi_subdevice *subdevices;
 
        /* dumb */
+       void __iomem *mmio;
        unsigned long iobase;
        unsigned long iolen;
        unsigned int irq;
index 42ddf1332ce89dee17a2a580c5b0d9a1858cc8a5..9ada130f2a76696ad7a3097c6c7cd005c3eff0f6 100644 (file)
@@ -121,6 +121,7 @@ static void comedi_device_detach_cleanup(struct comedi_device *dev)
        dev->driver = NULL;
        dev->board_name = NULL;
        dev->board_ptr = NULL;
+       dev->mmio = NULL;
        dev->iobase = 0;
        dev->iolen = 0;
        dev->ioenabled = false;
This page took 0.026149 seconds and 5 git commands to generate.