From: Peter Meerwald Date: Sat, 1 Nov 2014 14:54:00 +0000 (+0000) Subject: iio:pressure:mpl3115: Fix sparse cast to restricted __be32 warning X-Git-Tag: next-20140306~21^2~461^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4a2bbdb45e5538dcf3d9f3d9299dd7b9bc3c076f;p=karo-tx-linux.git iio:pressure:mpl3115: Fix sparse cast to restricted __be32 warning >> >> drivers/iio/pressure/mpl3115.c:101:46: sparse: cast to restricted __be32 >> >> drivers/iio/pressure/mpl3115.c:115:46: sparse: cast to restricted __be32 Signed-off-by: Peter Meerwald Reported-by: kbuild test robot Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/pressure/mpl3115.c b/drivers/iio/pressure/mpl3115.c index ac8c8ab723e5..ba6d0c520e63 100644 --- a/drivers/iio/pressure/mpl3115.c +++ b/drivers/iio/pressure/mpl3115.c @@ -77,7 +77,7 @@ static int mpl3115_read_raw(struct iio_dev *indio_dev, int *val, int *val2, long mask) { struct mpl3115_data *data = iio_priv(indio_dev); - s32 tmp = 0; + __be32 tmp = 0; int ret; switch (mask) {