diff options
author | David Veenstra | 2018-04-23 00:03:03 +0200 |
---|---|---|
committer | Jonathan Cameron | 2018-04-28 18:12:03 +0100 |
commit | 0bd3d338f61b957650700e3113fd9c7f49103570 (patch) | |
tree | 394ca9acf8aa02e63213690596f1aadddaca071c /Documentation/ABI | |
parent | 8b74816b5a9adac4629f0f072c122d57b8f0eb78 (diff) |
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>
Diffstat (limited to 'Documentation/ABI')
0 files changed, 0 insertions, 0 deletions