> Interesting. Whilst this obviously results in the removal of a lot of > repeated code, I am nervous about introducing the 'hidden' requirement > that the data buffer passed in must be bigger than is 'apparently' used > in the code calling this. I'm not sure what the right answer is though. maybe add some iio magic that always allocs the buffer dynamically based on the channel definition/scan_bytes regards, p. -- Peter Meerwald +43-664-2444418 (mobile) -- 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