unsigned int data1 = 0;
unsigned int data2 = 0;
- lo = &iobase->channel[subdev].program_lo[addr];
- hi = &iobase->channel[subdev].program_hi[addr];
+ lo = &iobase->block[subdev].program_lo[addr];
+ hi = &iobase->block[subdev].program_hi[addr];
more = more &&
read_idm_word(data, size, &pos, &data1);
if (!spriv)
return NULL;
- spriv->sensor = &iobase->channel[s->index].sensor;
+ spriv->sensor = &iobase->block[s->index].sensor;
for (j = 0; j < 8; j++) {
spriv->range[j].l.length = 1;
static void jr3_pci_show_copyright(struct comedi_device *dev)
{
struct jr3_t __iomem *iobase = dev->mmio;
- struct jr3_sensor __iomem *sensor0 = &iobase->channel[0].sensor;
+ struct jr3_sensor __iomem *sensor0 = &iobase->block[0].sensor;
char copy[ARRAY_SIZE(sensor0->copyright) + 1];
int i;
/* Reset DSP card */
for (i = 0; i < dev->n_subdevices; i++)
- writel(0, &iobase->channel[i].reset);
+ writel(0, &iobase->block[i].reset);
ret = comedi_load_firmware(dev, &comedi_to_pci_dev(dev)->dev,
"comedi/jr3pci.idm",