]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: iio: ad9834: Use private driver lock instead of mlock
authorsayli karnik <karniksayli1995@gmail.com>
Mon, 13 Mar 2017 16:35:27 +0000 (22:05 +0530)
committerJonathan Cameron <jic23@kernel.org>
Wed, 15 Mar 2017 22:12:21 +0000 (22:12 +0000)
commitc63313c605c3edcbb9ee95afb5f42148d4e5eb26
treea806999deb9dc4911bbb6cdcd3ecf16f3f307dab
parent8fa06c902ac91633b3354974f2a23668bb932067
staging: iio: ad9834: Use private driver lock instead of mlock

iio_dev->mlock should be used by the IIO core only for protecting
device operating mode changes. ie. Changes between INDIO_DIRECT_MODE,
INDIO_BUFFER_* modes.
Replace mlock with a lock in the device's global data to protect
hardware state changes.

Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/frequency/ad9834.c