OK, so this used the iio_chan_spec now. I just did 1 attribute for the gain instead of 1 / channel. It's always set before the query anyway so there's no reason for it to be per channel. thanks, Paul -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html