commit | c63313c605c3edcbb9ee95afb5f42148d4e5eb26 | [log] [tgz] |
---|---|---|
author | sayli karnik <karniksayli1995@gmail.com> | Mon Mar 13 22:05:27 2017 +0530 |
committer | Jonathan Cameron <jic23@kernel.org> | Wed Mar 15 22:12:21 2017 +0000 |
tree | a806999deb9dc4911bbb6cdcd3ecf16f3f307dab | |
parent | 8fa06c902ac91633b3354974f2a23668bb932067 [diff] |
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>