]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging:iio:ad7298: Do not perform endianness conversion in buffered mode
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 15 Nov 2012 13:15:00 +0000 (13:15 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 19 Nov 2012 22:22:13 +0000 (22:22 +0000)
commitca654638f2b4b00f948d2126dd544d2e35d2b880
treecde708b2dc163e3bcb61a33a234895605738f458
parentec04cb048d79cd778c06e28f34395a46d774800d
staging:iio:ad7298: Do not perform endianness conversion in buffered mode

For buffered mode we do not want to perform endianness conversion in the kernel,
but rather offload it to user space, since it is not always required to do a
conversion at all. It also greatly simplifies the kernel code since no
post-processing has to be done and may allow future optimizations like streaming
data directly to a storage device or over the network via DMA.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7298.h
drivers/staging/iio/adc/ad7298_core.c
drivers/staging/iio/adc/ad7298_ring.c