staging:iio:adc:ad7887 make use of iio_sw_buffer_preenable.
authorJonathan Cameron <jic23@kernel.org>
Sat, 21 Apr 2012 09:09:40 +0000 (10:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2012 18:23:38 +0000 (11:23 -0700)
commita64c0634e561c7236f8da5782c8023ec05f8fb5a
tree1e14d0409dd22109855d967099e9d48117fa7cd2
parent81a4fc01217c12b42af8a992dcf7fa9cc8373297
staging:iio:adc:ad7887 make use of iio_sw_buffer_preenable.

Using this generic function cuts down on repeated code at the cost
of some computation in a slow path.

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/ad7887.h
drivers/staging/iio/adc/ad7887_ring.c