aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-11-25 07:42:00 -0500
committerJonathan Cameron <jic23@kernel.org>2013-12-03 15:22:27 -0500
commit91f197e0c0ceda88c442f7adce6a84e5faa53586 (patch)
treeb604706378abebe34badabeffa9898e4c044f984 /drivers/iio
parent54e018da3141dbb41f3578d48be575087339710f (diff)
iio:vcnl4000: Mark transfer buffer as __be16
Fixes the following warnings from sparse: drivers/iio/light/vcnl4000.c:88:16: warning: cast to restricted __be16 drivers/iio/light/vcnl4000.c:88:16: warning: cast to restricted __be16 drivers/iio/light/vcnl4000.c:88:16: warning: cast to restricted __be16 drivers/iio/light/vcnl4000.c:88:16: warning: cast to restricted __be16 Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Cc: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/light/vcnl4000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c
index 384ac23f576f..d948c4778ba6 100644
--- a/drivers/iio/light/vcnl4000.c
+++ b/drivers/iio/light/vcnl4000.c
@@ -56,7 +56,7 @@ static int vcnl4000_measure(struct vcnl4000_data *data, u8 req_mask,
56 u8 rdy_mask, u8 data_reg, int *val) 56 u8 rdy_mask, u8 data_reg, int *val)
57{ 57{
58 int tries = 20; 58 int tries = 20;
59 u16 buf; 59 __be16 buf;
60 int ret; 60 int ret;
61 61
62 ret = i2c_smbus_write_byte_data(data->client, VCNL4000_COMMAND, 62 ret = i2c_smbus_write_byte_data(data->client, VCNL4000_COMMAND,