linux-stable/drivers/staging/iio
Jonathan Cameron 68b41aefa3 staging:iio:adc:ad7606 make gpio request failures more consistent
To my mind, if a gpio is specified in the board file, yet fails
to be successfully requested, that is an error condidtion and
the driver should not muddle on regardless.

This does mean unwinding the gpios on error. Also the free_gpios
function is reordered so that it is consistent with the request one
(reverse order obviously).

This patch is the category of not technically fixing anything, just
making the driver be more in line with what a reviewer will expect.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-10-03 16:07:04 -07:00
..
accel staging:iio: unwind the IIO_IN -> IIO_VOLTAGE define 2011-09-29 17:32:07 -07:00
adc staging:iio:adc:ad7606 make gpio request failures more consistent 2011-10-03 16:07:04 -07:00
addac staging:iio: unwind the IIO_IN -> IIO_VOLTAGE define 2011-09-29 17:32:07 -07:00
dac staging: iio: Move sensor drivers to sub menus 2011-09-26 17:31:50 -07:00
dds staging: iio: Move sensor drivers to sub menus 2011-09-26 17:31:50 -07:00
Documentation staging:iio:documentation Add abi docs for capacitance adcs. 2011-09-26 17:31:51 -07:00
gyro staging:iio: unwind the IIO_IN -> IIO_VOLTAGE define 2011-09-29 17:32:07 -07:00
impedance-analyzer staging:iio: unwind the IIO_IN -> IIO_VOLTAGE define 2011-09-29 17:32:07 -07:00
imu staging:iio: unwind the IIO_IN -> IIO_VOLTAGE define 2011-09-29 17:32:07 -07:00
light staging: iio: Move sensor drivers to sub menus 2011-09-26 17:31:50 -07:00
magnetometer staging:iio:magnetometer:ak8975: Fix probe() error-handling 2011-09-26 17:31:55 -07:00
meter staging:iio: unwind the IIO_IN -> IIO_VOLTAGE define 2011-09-29 17:32:07 -07:00
resolver staging: iio: Move sensor drivers to sub menus 2011-09-26 17:31:50 -07:00
trigger staging:iio:trigger:sysfs trigger: Add a release function to avoid warning on module removal. 2011-08-24 14:23:41 -07:00
buffer_generic.h staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
chrdev.h staging:iio:events - new 64 bit code structure and push out drivers. 2011-09-06 16:02:00 -07:00
iio.h staging:iio: unwind the IIO_IN -> IIO_VOLTAGE define 2011-09-29 17:32:07 -07:00
iio_core.h staging:iio: Prevent reading from buffer chrdev when device has no buffer. 2011-09-26 17:31:56 -07:00
iio_core_trigger.h staging:iio:trigger core. Trivial code cleanups. 2011-08-24 14:23:43 -07:00
industrialio-buffer.c staging:iio: Prevent reading from buffer chrdev when device has no buffer. 2011-09-26 17:31:56 -07:00
industrialio-core.c staging:iio: Prevent reading from buffer chrdev when device has no buffer. 2011-09-26 17:31:56 -07:00
industrialio-trigger.c staging:iio: tree wide IIO_RING_TRIGGERED -> IIO_BUFFER_TRIGGERED 2011-09-26 17:31:52 -07:00
Kconfig staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
kfifo_buf.c staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
kfifo_buf.h staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
Makefile staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
ring_hw.h staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
ring_sw.c staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
ring_sw.h staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
sysfs.h staging:iio:tree wide. abi fixup for in_ out_ prefix introduction. 2011-09-16 20:32:00 +02:00
TODO staging: iio: add ADI info to TODO 2010-11-09 15:46:32 -08:00
trigger.h staging: Add module.h to drivers/staging users 2011-08-25 17:01:20 -07:00
trigger_consumer.h staging:iio: treewide rename iio_triggered_ring_* to iio_triggered_buffer_* 2011-09-26 17:31:52 -07:00