diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-06-18 22:21:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-25 00:51:00 +0200 |
commit | 3de38f258f95b6dc9f614e1f64b8d596a75533e0 (patch) | |
tree | a090ff760e5899660c27c874e6b2425f8778da72 /drivers | |
parent | staging: comedi: pcmuio: introduce pcmuio_write() (diff) | |
download | linux-3de38f258f95b6dc9f614e1f64b8d596a75533e0.tar.xz linux-3de38f258f95b6dc9f614e1f64b8d596a75533e0.zip |
staging: comedi: pcmuio: remove unused private data variables
These members of the private data are either not referenced or are set
but never used by the driver. Remove them.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/pcmuio.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/staging/comedi/drivers/pcmuio.c b/drivers/staging/comedi/drivers/pcmuio.c index d882bb3c124d..0e71eacae14b 100644 --- a/drivers/staging/comedi/drivers/pcmuio.c +++ b/drivers/staging/comedi/drivers/pcmuio.c @@ -125,8 +125,6 @@ #define PCMUIO48_IOSIZE ASIC_IOSIZE #define PCMUIO96_IOSIZE (ASIC_IOSIZE * 2) -#define NUM_PAGED_REGS 3 - struct pcmuio_board { const char *name; const int num_asics; @@ -180,11 +178,6 @@ struct pcmuio_subdev_private { struct pcmuio_private { struct { - /* shadow of POLx registers */ - unsigned char pol[NUM_PAGED_REGS]; - /* shadow of ENABx registers */ - unsigned char enab[NUM_PAGED_REGS]; - int num; unsigned long iobase; unsigned int irq; spinlock_t spinlock; @@ -701,7 +694,6 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it) dev->private = devpriv; for (asic = 0; asic < MAX_ASICS; ++asic) { - devpriv->asics[asic].num = asic; devpriv->asics[asic].iobase = dev->iobase + asic * ASIC_IOSIZE; spin_lock_init(&devpriv->asics[asic].spinlock); } |