linux/drivers/staging/iio
David Veenstra 0bd3d338f6 staging: iio: ad2s1200: Improve readability with be16_to_cpup
The manual states that the data is contained in the upper 12 bits
of the 16 bits read by spi. The code that extracts these 12 bits
is correct for both be and le machines, but this is not clear
from a first glance.

To improve readability the relevant expressions are replaced
with equivalent expressions that use be16_to_cpup.

Signed-off-by: David Veenstra <davidjulianveenstra@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-04-28 18:12:03 +01:00
..
accel Staging: iio: adis16209: Move adis16209 driver out of staging 2018-03-30 13:50:36 +01:00
adc staging: iio: adc: simplify getting .drvdata 2018-04-28 16:17:59 +01:00
addac Staging: iio: adt7316: Move symbol export to definition 2018-03-10 15:18:56 +00:00
cdc staging: iio: ad7746: Fix bound checkings 2018-04-21 15:38:38 +01:00
Documentation staging:iio:docs: drop setting of THIS_MODULE from staging docs. 2017-09-03 18:10:28 +01:00
frequency staging:iio:frequency: drop assign iio_info.driver_module 2017-08-22 22:14:55 +01:00
gyro staging:iio:gyro:adis16060 drop assign iio_info.driver_module 2017-08-22 22:14:55 +01:00
impedance-analyzer staging: iio: ad5933: switch buffer mode to software 2018-01-28 08:24:20 +00:00
light staging: iio: tsl2x7x: rename prox_config to als_prox_config 2018-04-28 16:17:59 +01:00
meter staging:iio:ade7854: Remove read_reg_* duplications 2018-03-24 13:28:05 +00:00
resolver staging: iio: ad2s1200: Improve readability with be16_to_cpup 2018-04-28 18:12:03 +01:00
trigger staging: iio: trigger: blackfin timer: replace device_attr with device_attr_rw 2018-01-08 16:03:43 +01:00
Kconfig iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
TODO staging:iio:TODO drop outdated entries in this todo. 2016-10-23 19:33:40 +01:00