mirror-linux/drivers/staging
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
..
android Merge 4.16-rc3 into staging-next 2018-02-26 15:32:00 +01:00
board
clocking-wizard staging: clocking-wizard: remove redundant license text 2018-01-15 16:03:45 +01:00
comedi staging: comedi: adl_pci6208: remove redundant initialization of 'val' 2018-03-14 12:57:06 +01:00
dgnc staging: dgnc: drop unused neo_uart_struct 2018-01-17 15:02:56 +01:00
emxx_udc staging: emxx_udc: Remove unnecessary NULL checks 2018-03-06 04:09:17 -08:00
fbtft staging: fbtft: remove unused FB_TFT_SSD1325 kconfig 2018-01-25 13:10:39 +01:00
fsl-dpaa2 staging: fsl-dpaa2/ethsw: Add TODO 2018-03-14 17:36:10 +01:00
fsl-mc staging: fsl-mc: Move DPCON out of staging 2018-03-14 13:18:42 +01:00
fwserial vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
gdm724x Staging: gdm724x: LTE: Refactor gdm_lte_pdn_table(). 2018-02-23 09:54:56 +01:00
goldfish
greybus vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
gs_fpgaboot Staging: gs_fpgaboot: remove FSF's mailing address from io.h 2018-01-08 16:47:23 +01:00
iio staging: iio: ad2s1200: Improve readability with be16_to_cpup 2018-04-28 18:12:03 +01:00
ipx Staging/IIO patches for 4.16-rc1 2018-02-01 09:51:57 -08:00
ks7010 staging: ks7010: replace custom rotation operations in favour of the kernel ones 2018-03-14 12:57:06 +01:00
lustre staging: lustre: fid: avoid false-positive uninitialized variable warning 2018-03-14 12:56:15 +01:00
media Revert "Staging: bcm2048: Fix function argument alignment in radio-bcm2048.c." 2018-02-27 14:42:14 +01:00
most staging: most: Remove unnecessary usage of BUG_ON(). 2018-03-08 09:56:15 -08:00
mt29f_spinand
ncpfs Staging/IIO patches for 4.16-rc1 2018-02-01 09:51:57 -08:00
netlogic staging: net: netlogic: Remove unneeded cast 2018-02-22 14:59:05 +01:00
nvec staging: nvec: remove redundant license text 2018-01-15 16:03:45 +01:00
octeon staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
octeon-usb
olpc_dcon
pi433 staging: pi433: Remove comments inside code 2018-03-14 13:06:24 +01:00
rtl8188eu staging:r8188eu: Use lib80211 to support TKIP 2018-03-14 13:06:24 +01:00
rtl8192e staging: rtl8192e: Add spaces around operators. 2018-03-06 04:07:48 -08:00
rtl8192u staging: rtl8192u: Replace printk() with more standardize output format. 2018-03-08 09:56:15 -08:00
rtl8712 staging: rtl8712: remove unnecessary parentheses 2018-03-06 04:03:44 -08:00
rtl8723bs staging: rtl8723bs: core: rtw_cmd: remove unnecessary initialization 2018-03-14 13:01:17 +01:00
rtlwifi staging: rtlwifi: Remove nonessential semicolon 2018-03-06 04:01:11 -08:00
rts5208 staging: rts5208: Fix "seg_no" calculation in reset_ms_card() 2018-01-22 15:21:09 +01:00
skein
sm750fb staging: sm750fb: Remove typedefs from enums 2018-02-16 15:41:27 +01:00
speakup staging: speakup: Add unicode support to the speakup_dummy driver 2018-03-14 12:57:45 +01:00
typec staging: typec: remove redundant license text 2018-01-15 16:03:44 +01:00
unisys staging: unisys: visorinput: use the full 80 characters of the screen 2018-02-16 15:42:22 +01:00
vboxvideo drm/graphics pull request for v4.16-rc1 2018-02-01 17:48:47 -08:00
vc04_services staging: vc04_services: Remove vchiq_queue_bulk_{transmit,receive}. 2018-03-14 13:05:19 +01:00
vme Staging/IIO patches for 4.16-rc1 2018-02-01 09:51:57 -08:00
vt6655 staging: vt6655: Fix style violation for line ending in '(' 2018-03-06 04:01:11 -08:00
vt6656 staging: vt6656: Remove unnecessary 'out of memory' message 2018-02-16 15:41:27 +01:00
wilc1000 staging: wilc1000: fix line over 80 char issue in handle_scan_done() 2018-03-14 12:59:51 +01:00
wlan-ng Staging: wlan-ng: fix unnecessary parantheses in prism2mgmt.c 2018-02-16 15:36:16 +01:00
xgifb staging: xgifb: vb_setmode: brace style fixes 2018-01-16 09:41:19 +01:00
Kconfig staging: irda: remove the irda network stack and drivers 2018-03-14 13:12:26 +01:00
Makefile staging: irda: remove the irda network stack and drivers 2018-03-14 13:12:26 +01:00