staging:iio: Prevent reading from buffer chrdev when device has no buffer.
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 21 Sep 2011 10:16:02 +0000 (11:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Sep 2011 00:31:56 +0000 (17:31 -0700)
commit30eb82f05dd1f12b18a0ad054401a0b5690fb3c3
tree2970468c533272e6d840fb42ab3aff0636655040
parentad31d250bf60c8e4c990e8b0daeedbaa2d6884a9
staging:iio: Prevent reading from buffer chrdev when device has no buffer.

Silly bug introduced during the chrdev merge series.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/iio_core.h
drivers/staging/iio/industrialio-buffer.c
drivers/staging/iio/industrialio-core.c