iio: imu: adis: group single conversion under a single state lock
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 22 Nov 2019 13:24:17 +0000 (15:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 23 Nov 2019 12:13:35 +0000 (12:13 +0000)
commitc5485a5d6a5f7d00ca4aba6698526c5ae3f2a1a2
treebf48c48ae5c1952f6a78c692d6cea7713c4ebc20
parentcb5a07f1f15cc3fd7e12bfdd48ba0e9fb585ea5e
iio: imu: adis: group single conversion under a single state lock

The single conversion function does a series of reads + writes. This change
extends the use of the state_lock for the entire set of operations.
Previously, indio_dev's mlock was used. This change also removes the use of
this lock.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis.c