| commit | c562ccbf584f8017a153bbd5c1039a189e1f8be8 | [log] [tgz] |
|---|---|---|
| author | Jonathan Cameron <jic23@kernel.org> | Sat Apr 21 10:09:42 2012 +0100 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Apr 24 11:23:38 2012 -0700 |
| tree | 20a08f1462383d7caccdf689236a347a551e8ee7 | |
| parent | c1633187829aa11a475ab6e453f05d3f6a172aff [diff] |
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>