diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-03-07 13:41:08 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-17 12:38:54 -0700 |
commit | d6ae5062043e80a166c4c61ff104628c34b1710f (patch) | |
tree | 677a62cd545deee4eed3766fc61f01e0e96eb86e | |
parent | da1331a50315a0a52b807216c721319cc4e3238a (diff) |
staging: comedi: jr3_pci: remove 'channel_no' from subdevice private data
This member of the subdevice private data is just the subdevice 'index'. Use
that instead and remove the member.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/comedi/drivers/jr3_pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/jr3_pci.c b/drivers/staging/comedi/drivers/jr3_pci.c index 5cb45783d6fa..a8db9d86aadc 100644 --- a/drivers/staging/comedi/drivers/jr3_pci.c +++ b/drivers/staging/comedi/drivers/jr3_pci.c @@ -111,7 +111,6 @@ struct jr3_pci_subdev_private { state_jr3_init_use_offset_complete, state_jr3_done } state; - int channel_no; int serial_no; int model_no; struct { @@ -311,7 +310,7 @@ static int jr3_pci_open(struct comedi_device *dev) spriv = s->private; if (spriv) dev_dbg(dev->class_dev, "serial: %p %d (%d)\n", - spriv, spriv->serial_no, spriv->channel_no); + spriv, spriv->serial_no, s->index); } return 0; } @@ -646,7 +645,6 @@ jr3_pci_alloc_spriv(struct comedi_device *dev, struct comedi_subdevice *s) return NULL; spriv->channel = &devpriv->iobase->channel[s->index].data; - spriv->channel_no = s->index; for (j = 0; j < 8; j++) { spriv->range[j].length = 1; |