staging:iio:adc:ad7192 make use of iio_sw_buffer_preenable.
authorJonathan Cameron <jic23@kernel.org>
Sat, 21 Apr 2012 09:09:36 +0000 (10:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2012 18:23:37 +0000 (11:23 -0700)
commit2150489ffbd1cd6f5d1091c1738b1adfbdf34a43
tree57add6a87c6b53dd6f5bdc23a957a2ed11c1a17a
parent420fe2e9471518f57a551d2114a54a0aa0c12ea3
staging:iio:adc:ad7192 make use of iio_sw_buffer_preenable.

This is not a fast path, so although the original code was more consise
use the generic case to cut down on code repitition.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/ad7192.c