summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/cdc
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-11-25 12:42:00 +0000
committerJonathan Cameron <jic23@kernel.org>2013-12-03 20:22:28 +0000
commitd4adb07c7ad56283419170afe2cf5d868635e9d4 (patch)
treed046e689f015c8cb9a4e0ef6b0eff340e0e837ab /drivers/staging/iio/cdc
parent93dbad639d93300977ed76acc0db20771cca98f7 (diff)
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 <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/cdc')
-rw-r--r--drivers/staging/iio/cdc/ad7746.c2
1 files changed, 1 insertions, 1 deletions
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;