iio: gyro: adis16260: replace mlock with ADIS lib's state_lock
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 22 Nov 2019 13:24:21 +0000 (15:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 23 Nov 2019 12:19:15 +0000 (12:19 +0000)
commit160b37f49ec3b3adc6916f411ee3ceebea8dd13d
treeede739fdeb948458a676717c5cd92c5c4e3bb9b7
parentd693845da31c4d1093a8165d1ac4a73eac0f9373
iio: gyro: adis16260: replace mlock with ADIS lib's state_lock

This change uses the ADIS library's state_lock to protect the state of the
`max_speed_hz` change that is done during the set of the sampling
frequency.

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