From: Jonathan Cameron Date: Wed, 26 Oct 2011 16:27:45 +0000 (+0100) Subject: staging:iio: core. Allow for event chrdev obtaining ioctl if no buffer present. X-Git-Tag: v3.3-rc1~152^2~101^2~333 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96e00f110fae862b61f3db9dc25fe8f0f43f77e9;p=pandora-kernel.git staging:iio: core. Allow for event chrdev obtaining ioctl if no buffer present. Logic bug meant the chrdev would fail to open if there was no buffer support in a driver or in the core. This meant the ioctl to get the event chrdev would fail and hence events were not available. V2: change error to -EINVAL to mark as unsuitable for reading rather than not there. Both are true depending on how you look at it. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed