From 4a2bbdb45e5538dcf3d9f3d9299dd7b9bc3c076f Mon Sep 17 00:00:00 2001 From: Peter Meerwald Date: Sat, 1 Nov 2014 14:54:00 +0000 Subject: [PATCH] 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 --- drivers/iio/pressure/mpl3115.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5