From: Lars-Peter Clausen Date: Mon, 25 Nov 2013 12:42:00 +0000 (+0000) Subject: staging:iio:ad7746: Mark transfer buffer as __be32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d4adb07c7ad56283419170afe2cf5d868635e9d4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging:iio:ad7746: Mark transfer buffer as __be32 Fixes the following warnings from sparse: drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32 drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32 drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32 drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32 drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32 drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32 Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 862d68d99630..01e15e2f3f50 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers/staging/iio/cdc/ad7746.c @@ -567,7 +567,7 @@ static int ad7746_read_raw(struct iio_dev *indio_dev, u8 regval, reg; union { - u32 d32; + __be32 d32; u8 d8[4]; } data;