summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/adc/ad7298_ring.c
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-10-26 17:27:45 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-26 16:30:31 -0800
commit96e00f110fae862b61f3db9dc25fe8f0f43f77e9 (patch)
treed6639d183446fdc3a57be12e8cec196ef91e5329 /drivers/staging/iio/adc/ad7298_ring.c
parentbc9f35db8fed28d8fa1195b3927c8e1e91d64388 (diff)
downloadop-kernel-dev-96e00f110fae862b61f3db9dc25fe8f0f43f77e9.zip
op-kernel-dev-96e00f110fae862b61f3db9dc25fe8f0f43f77e9.tar.gz
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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/adc/ad7298_ring.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud