2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-15 00:54:03 +08:00
linux-next/drivers/staging
Shreeya Patel 0bd39455b1 Staging: iio: ade7758: Expand buf_lock to cover both buffer and state protection
iio_dev->mlock is to be used only by the IIO core for protecting
device mode changes between INDIO_DIRECT and INDIO_BUFFER.

This patch replaces the use of mlock with the already established
buf_lock mutex.

Introducing 'unlocked' forms of read and write registers. The
read/write frequency functions now require buf_lock to be held.
That's not obvious so avoid this but moving the locking inside
the functions where it is then clear that they are taking the
unlocked forms of the register read/write.

It isn't readily apparent that write frequency function requires
the locks to be taken, so move it inside the function to where it
is required to protect.

Also, the read raw does not require iio_dev->mlock for
reads. It can run concurrently as resource protection is handled
by buf_lock in read register.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-02-10 15:29:13 +00:00
..
android staging: android: ion: Switch from WARN to pr_warn 2018-01-09 15:38:48 +01:00
board License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ccree staging: ccree: dma mask is type u64 2018-01-09 16:02:18 +01:00
clocking-wizard
comedi staging: comedi: adv_pci1760: fix typo in comments 2018-01-08 16:45:45 +01:00
dgnc staging: dgnc: add identifiers to function parameters 2017-12-06 10:08:21 +01:00
emxx_udc
fbtft staging: fbtft: Fix indentation 2018-01-10 19:14:47 +01:00
fsl-dpaa2 staging: fsl-dpaa2/eth: Use affine DPIO services 2018-01-08 16:47:23 +01:00
fsl-mc staging: fsl-mc/dpio: Add dpaa2_io_service_select() API 2018-01-08 16:47:23 +01:00
fwserial Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
gdm724x Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
goldfish staging: goldfish: (Coding Style) Fixed parenthesis alignment. 2017-08-31 18:21:37 +02:00
greybus Staging: greybus: camera: cleanup multiple checks for null pointers 2018-01-09 15:38:48 +01: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: ade7758: Expand buf_lock to cover both buffer and state protection 2018-02-10 15:29:13 +00:00
ipx staging: ipx: depends on NET 2017-11-30 17:13:52 +00:00
irda drivers: staging: remove duplicate includes 2017-12-06 18:26:05 +01:00
ks7010 Staging: ks7010: ks_wlan_net: Fixing coding style warning 2017-12-19 15:23:18 +01:00
lustre staging: lustre: remove LIBCFS_ALLOC, LIBCFS_FREE and related macros. 2018-01-09 15:57:54 +01:00
media Merge 4.15-rc4 into staging-next 2017-12-18 09:12:51 +01:00
most staging: most: convert macro to static function 2018-01-08 16:36:00 +01:00
mt29f_spinand staging: mt29f_spinand: Enable the read ECC before program the page 2017-09-18 12:25:31 +02:00
ncpfs ncpfs: remove redundant cast of struct ncp_inode_info 2018-01-09 19:34:12 +01:00
netlogic staging: net: netlogic: Fix alignment issue 2017-10-18 16:17:14 +02:00
nvec License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
octeon staging: octeon: fix line over 80 characters 2017-08-18 15:57:17 -07:00
octeon-usb staging: octeon-usb: use __delay() instead of cvmx_wait() 2017-11-28 14:36:46 +01:00
olpc_dcon staging: olpc_dcon: Line up parentheses in func calls and defs 2017-12-06 10:00:30 +01:00
pi433 staging: pi433: Cleanup codestyle, indent statements after case labels 2018-01-10 19:29:34 +01:00
rtl8188eu rtl8188eu: Fix a possible sleep-in-atomic bug in set_tx_beacon_cmd 2017-12-13 12:48:46 +01:00
rtl8192e Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
rtl8192u staging: rtl8192u: Replace mdelay with msleep in rtl8192_usb_probe 2018-01-08 16:45:45 +01:00
rtl8712 staging: rtl8712: style fix multiple line dereferences 2017-12-21 18:27:15 +01:00
rtl8723bs staging: rtl8723bs: Fix trailing semicolon 2018-01-10 19:14:47 +01:00
rtlwifi Staging: rtlwifi: Remove unused variable and the code 2018-01-08 16:45:45 +01:00
rts5208 staging: rts5208: sd: fix misspelled constant 2018-01-10 19:14:47 +01:00
skein License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sm750fb staging: sm750fb: Remove multiple blank lines 2018-01-08 16:47:23 +01:00
speakup staging: speakup: selection: replace _manual_ swap with swap macro 2017-11-27 09:20:40 +01:00
typec staging: typec: fix endianness mismatch identified by sparse 2017-12-19 11:57:37 +01:00
unisys drivers: visorbus: move driver out of staging 2017-12-08 16:37:50 +01:00
vboxvideo vboxvideo: Fix incorrect type in assignment sparse warning 2018-01-08 16:03:45 +01:00
vc04_services staging: vc05_services: fix checkpatch.pl errors 2018-01-08 16:41:37 +01:00
vme Staging: vme: vme_user: fixed an alignment coding style issue 2018-01-08 16:41:36 +01:00
vt6655 staging: vt6655: Use GFP_KERNEL in kzalloc 2017-12-19 15:16:50 +01:00
vt6656 Staging: vt6656: Fix unnecessary 'out of memory' message 2018-01-08 16:45:45 +01:00
wilc1000 staging: wilc1000: add SPDX identifiers to all wilc100 files 2017-11-28 13:20:46 +01:00
wlan-ng Staging: wlan-ng: hfa384x_usb: fixed two line limit coding style issues 2018-01-08 16:41:36 +01:00
xgifb staging: xgifb: remove macros with hidden variable 2017-12-06 09:59:27 +01:00
Kconfig ncpfs: move net/ncpfs to drivers/staging/ncpfs 2017-11-28 13:55:01 +01:00
Makefile ncpfs: move net/ncpfs to drivers/staging/ncpfs 2017-11-28 13:55:01 +01:00