v2: Changed error to -EINVAL as per Lars-Peter's suggestion. v1: Lars-Peter pointed out this issue. Basically the checks for whether we had a buffer were in the open wheras they should be in the read. I've tested this on the tsl2563 driver and it all seems fine. Lars-Peter - could you hammer this a little to see if I have missed any corner cases? Thanks, Jonathan Jonathan Cameron (1): staging:iio: core. Allow for event chrdev obtaining ioctl if no buffer present. drivers/staging/iio/iio_core.h | 2 +- drivers/staging/iio/industrialio-buffer.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) -- 1.7.7 -- 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