diff options
author | Jonathan Cameron <jic23@kernel.org> | 2012-11-21 13:24:26 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-21 13:24:26 -0500 |
commit | be7fd3b86ad2f2a8db58decc15d2274b0c89c23b (patch) | |
tree | ef3e19fd0e7e759e6e16cc6d96864ed8532bd66d /drivers/iio | |
parent | 2f3abe6cbb6c963ac790b40936b6761c9f0497b4 (diff) |
iio:adc:ad7298 make the tx and rx buffers __be16
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/ad7298.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/adc/ad7298.c b/drivers/iio/adc/ad7298.c index 441a9a265c12..2364807a5d6c 100644 --- a/drivers/iio/adc/ad7298.c +++ b/drivers/iio/adc/ad7298.c | |||
@@ -54,8 +54,8 @@ struct ad7298_state { | |||
54 | * DMA (thus cache coherency maintenance) requires the | 54 | * DMA (thus cache coherency maintenance) requires the |
55 | * transfer buffers to live in their own cache lines. | 55 | * transfer buffers to live in their own cache lines. |
56 | */ | 56 | */ |
57 | unsigned short rx_buf[12] ____cacheline_aligned; | 57 | __be16 rx_buf[12] ____cacheline_aligned; |
58 | unsigned short tx_buf[2]; | 58 | __be16 tx_buf[2]; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | #define AD7298_V_CHAN(index) \ | 61 | #define AD7298_V_CHAN(index) \ |