diff options
author | Aybuke Ozdemir <aybuke.147@gmail.com> | 2014-09-28 11:45:09 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-29 02:22:13 (GMT) |
commit | 03c6eaa37ad7cd4838a8a6d745eb4da4db48c2f1 (patch) | |
tree | 3b25e0a08a68741e51070dd2901402233c82483f /drivers/staging/iio/accel/sca3000_ring.c | |
parent | 2bd7e245ea46dac4defdbed873c1cebe6c1e9c80 (diff) | |
download | linux-03c6eaa37ad7cd4838a8a6d745eb4da4db48c2f1.tar.xz |
staging: iio: accel: Use __be16 instead of u16
This patch fixes these warning messages found by sparse:
drivers/staging/iio/accel/sca3000_ring.c:120:61: warning: incorrect type in argument 1 (different base types)
drivers/staging/iio/accel/sca3000_ring.c:120:61: expected restricted __be16 const [usertype] *p
drivers/staging/iio/accel/sca3000_ring.c:120:61: got unsigned short [usertype] *
Signed-off-by: Aybuke Ozdemir <aybuke.147@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/accel/sca3000_ring.c')
-rw-r--r-- | drivers/staging/iio/accel/sca3000_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c index 33f0e92..1578276 100644 --- a/drivers/staging/iio/accel/sca3000_ring.c +++ b/drivers/staging/iio/accel/sca3000_ring.c @@ -117,7 +117,7 @@ static int sca3000_read_first_n_hw_rb(struct iio_buffer *r, goto error_ret; for (i = 0; i < num_read; i++) - *(((u16 *)rx) + i) = be16_to_cpup((u16 *)rx + i); + *(((u16 *)rx) + i) = be16_to_cpup((__be16 *)rx + i); if (copy_to_user(buf, rx, num_read)) ret = -EFAULT; |