aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-09-10 04:34:00 -0400
committerJonathan Cameron <jic23@kernel.org>2012-09-15 05:02:14 -0400
commit610a407cdc5a8ab5358fb253b3c5457452ff1d75 (patch)
treeeed3f70a60f9fcadd481dd9e4e1d6de63d92effa /drivers
parent7a28fe3c93d6cd920c84678a1bf45af8b4248577 (diff)
staging:iio:ad7476: Use be16_to_cpup instead of open-coding it
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/iio/adc/ad7476.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7476.c b/drivers/staging/iio/adc/ad7476.c
index 12e6e4b36a5f..a33a4066ebe2 100644
--- a/drivers/staging/iio/adc/ad7476.c
+++ b/drivers/staging/iio/adc/ad7476.c
@@ -83,7 +83,7 @@ static int ad7476_scan_direct(struct ad7476_state *st)
83 if (ret) 83 if (ret)
84 return ret; 84 return ret;
85 85
86 return (st->data[0] << 8) | st->data[1]; 86 return be16_to_cpup((__be16 *)st->data);
87} 87}
88 88
89static int ad7476_read_raw(struct iio_dev *indio_dev, 89static int ad7476_read_raw(struct iio_dev *indio_dev,