summaryrefslogtreecommitdiffstats
path: root/drivers/usb/Kconfig
diff options
context:
space:
mode:
authorDavid Veenstra <davidjulianveenstra@gmail.com>2018-04-23 00:03:03 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-04-28 19:12:03 +0200
commit0bd3d338f61b957650700e3113fd9c7f49103570 (patch)
tree394ca9acf8aa02e63213690596f1aadddaca071c /drivers/usb/Kconfig
parentiio: afe: rescale: new driver (diff)
downloadlinux-0bd3d338f61b957650700e3113fd9c7f49103570.tar.xz
linux-0bd3d338f61b957650700e3113fd9c7f49103570.zip
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 'drivers/usb/Kconfig')
0 files changed, 0 insertions, 0 deletions