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>
state_jr3_init_use_offset_complete,
state_jr3_done
} state;
- int channel_no;
int serial_no;
int model_no;
struct {
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;
}
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;