staging:iio:ad7746: Mark transfer buffer as __be32
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 25 Nov 2013 12:42:00 +0000 (12:42 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 3 Dec 2013 20:22:28 +0000 (20:22 +0000)
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>
drivers/staging/iio/cdc/ad7746.c

index 862d68d99630c7249db561ff126d9011a3015052..01e15e2f3f50d4f021d9b74cd3cd95d0c9b4b432 100644 (file)
@@ -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;