iio:adc:ad7298 make the tx and rx buffers __be16
authorJonathan Cameron <jic23@kernel.org>
Wed, 21 Nov 2012 18:24:26 +0000 (18:24 +0000)
committerJonathan Cameron <jic23@kernel.org>
Wed, 21 Nov 2012 18:24:26 +0000 (18:24 +0000)
These buffers are a little interesting in that their
content may have variable endianness, but all but one
element will definitely be big endian.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/iio/adc/ad7298.c

index 441a9a265c121f9630c03efe668995ea680c1b4a..2364807a5d6c47e358b9706a0d5d524eed161021 100644 (file)
@@ -54,8 +54,8 @@ struct ad7298_state {
         * DMA (thus cache coherency maintenance) requires the
         * transfer buffers to live in their own cache lines.
         */
-       unsigned short                  rx_buf[12] ____cacheline_aligned;
-       unsigned short                  tx_buf[2];
+       __be16                          rx_buf[12] ____cacheline_aligned;
+       __be16                          tx_buf[2];
 };
 
 #define AD7298_V_CHAN(index)                                           \