ret = ad799x_single_channel_from_ring(dev_info,
chan->scan_index);
else
- ret = ad799x_scan_direct(st, chan->address);
+ ret = ad799x_scan_direct(st, chan->scan_index);
mutex_unlock(&dev_info->mlock);
if (ret < 0)
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
- .address = 0,
.scan_index = 0,
.scan_type = IIO_ST('u', 12, 16, 0),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 1,
- .address = 1,
.scan_index = 1,
.scan_type = IIO_ST('u', 12, 16, 0),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 2,
- .address = 2,
.scan_index = 2,
.scan_type = IIO_ST('u', 12, 16, 0),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 3,
- .address = 3,
.scan_index = 3,
.scan_type = IIO_ST('u', 12, 16, 0),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
- .address = 0,
.scan_index = 0,
.scan_type = IIO_ST('u', 10, 16, 2),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 1,
- .address = 1,
.scan_index = 1,
.scan_type = IIO_ST('u', 10, 16, 2),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 2,
- .address = 2,
.scan_index = 2,
.scan_type = IIO_ST('u', 10, 16, 2),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 3,
- .address = 3,
.scan_index = 3,
.scan_type = IIO_ST('u', 10, 16, 2),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
- .address = 0,
.scan_index = 0,
.scan_type = IIO_ST('u', 8, 16, 4),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 1,
- .address = 1,
.scan_index = 1,
.scan_type = IIO_ST('u', 8, 16, 4),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 2,
- .address = 2,
.scan_index = 2,
.scan_type = IIO_ST('u', 8, 16, 4),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 3,
- .address = 3,
.scan_index = 3,
.scan_type = IIO_ST('u', 8, 16, 4),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
- .address = 0,
.scan_index = 0,
.scan_type = IIO_ST('u', 12, 16, 0),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 1,
- .address = 1,
.scan_index = 1,
.scan_type = IIO_ST('u', 12, 16, 0),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
- .address = 0,
.scan_index = 0,
.scan_type = IIO_ST('u', 10, 16, 2),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 1,
- .address = 1,
.scan_index = 1,
.scan_type = IIO_ST('u', 10, 16, 2),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 2,
- .address = 2,
.scan_index = 2,
.scan_type = IIO_ST('u', 10, 16, 2),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 3,
- .address = 3,
.scan_index = 3,
.scan_type = IIO_ST('u', 10, 16, 2),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
- .address = 0,
.scan_index = 0,
.scan_type = IIO_ST('u', 12, 16, 0),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 1,
- .address = 1,
.scan_index = 1,
.scan_type = IIO_ST('u', 12, 16, 0),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 2,
- .address = 2,
.scan_index = 2,
.scan_type = IIO_ST('u', 12, 16, 0),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 3,
- .address = 3,
.scan_index = 3,
.scan_type = IIO_ST('u', 12, 16, 0),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
- .address = 0,
.scan_index = 0,
.scan_type = IIO_ST('u', 10, 16, 2),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 1,
- .address = 1,
.scan_index = 1,
.scan_type = IIO_ST('u', 10, 16, 2),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 2,
- .address = 2,
.scan_index = 2,
.scan_type = IIO_ST('u', 10, 16, 2),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 3,
- .address = 3,
.scan_index = 3,
.scan_type = IIO_ST('u', 10, 16, 2),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 4,
- .address = 4,
.scan_index = 4,
.scan_type = IIO_ST('u', 10, 16, 2),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 5,
- .address = 5,
.scan_index = 5,
.scan_type = IIO_ST('u', 10, 16, 2),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 6,
- .address = 6,
.scan_index = 6,
.scan_type = IIO_ST('u', 10, 16, 2),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 7,
- .address = 7,
.scan_index = 7,
.scan_type = IIO_ST('u', 10, 16, 2),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 0,
- .address = 0,
.scan_index = 0,
.scan_type = IIO_ST('u', 12, 16, 0),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 1,
- .address = 1,
.scan_index = 1,
.scan_type = IIO_ST('u', 12, 16, 0),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 2,
- .address = 2,
.scan_index = 2,
.scan_type = IIO_ST('u', 12, 16, 0),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 3,
- .address = 3,
.scan_index = 3,
.scan_type = IIO_ST('u', 12, 16, 0),
.event_mask = AD799X_EV_MASK,
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 4,
- .address = 4,
.scan_index = 4,
.scan_type = IIO_ST('u', 12, 16, 0),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 5,
- .address = 5,
.scan_index = 5,
.scan_type = IIO_ST('u', 12, 16, 0),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 6,
- .address = 6,
.scan_index = 6,
.scan_type = IIO_ST('u', 12, 16, 0),
},
.type = IIO_VOLTAGE,
.indexed = 1,
.channel = 7,
- .address = 7,
.scan_index = 7,
.scan_type = IIO_ST('u', 12, 16, 0),
},