aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/adc/ad7298_core.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-11-15 08:15:00 -0500
committerJonathan Cameron <jic23@kernel.org>2012-11-19 17:22:13 -0500
commitca654638f2b4b00f948d2126dd544d2e35d2b880 (patch)
treecde708b2dc163e3bcb61a33a234895605738f458 /drivers/staging/iio/adc/ad7298_core.c
parentec04cb048d79cd778c06e28f34395a46d774800d (diff)
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>
Diffstat (limited to 'drivers/staging/iio/adc/ad7298_core.c')
-rw-r--r--drivers/staging/iio/adc/ad7298_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/adc/ad7298_core.c b/drivers/staging/iio/adc/ad7298_core.c
index 4c75114e7d7..67082ade185 100644
--- a/drivers/staging/iio/adc/ad7298_core.c
+++ b/drivers/staging/iio/adc/ad7298_core.c
@@ -35,6 +35,7 @@
35 .sign = 'u', \ 35 .sign = 'u', \
36 .realbits = 12, \ 36 .realbits = 12, \
37 .storagebits = 16, \ 37 .storagebits = 16, \
38 .endianness = IIO_BE, \
38 }, \ 39 }, \
39 } 40 }
40 41