staging:iio:meter:ad7758 use iio_sw_buffer_preenable to avoid code repition
authorJonathan Cameron <jic23@kernel.org>
Sat, 21 Apr 2012 09:09:42 +0000 (10:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2012 18:23:38 +0000 (11:23 -0700)
commitc562ccbf584f8017a153bbd5c1039a189e1f8be8
tree20a08f1462383d7caccdf689236a347a551e8ee7
parentc1633187829aa11a475ab6e453f05d3f6a172aff
staging:iio:meter:ad7758 use iio_sw_buffer_preenable to avoid code repition

Using this generic function adds a little overhead to a slow path but
reduces the amount of code repitition in exchange.

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/meter/ade7758_ring.c