From: Jonathan Cameron Date: Wed, 21 Nov 2012 18:24:26 +0000 (+0000) Subject: iio:adc:ad7298 make the tx and rx buffers __be16 X-Git-Tag: v3.8-rc1~178^2~294^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be7fd3b86ad2f2a8db58decc15d2274b0c89c23b;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Jonathan Cameron Acked-by: Lars-Peter Clausen --- diff --git a/drivers/iio/adc/ad7298.c b/drivers/iio/adc/ad7298.c index 441a9a2..2364807 100644 --- a/drivers/iio/adc/ad7298.c +++ b/drivers/iio/adc/ad7298.c @@ -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) \