OSDN Git Service

iio: gyro: adis16136: rework locks using ADIS library's state lock
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 22 Nov 2019 13:24:19 +0000 (15:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 23 Nov 2019 12:16:16 +0000 (12:16 +0000)
commit0aee99a1ea53de1aedcf96a4d52d6161ffba011a
tree282a7855b9e83eb98314c86321992b1bcbacc807
parentce476cd18aaea91ee31b991774553ba5239c9ee2
iio: gyro: adis16136: rework locks using ADIS library's state lock

This replaces indio_dev's mlock with the state lock/mutex from the ADIS
library.

The __adis16136_get_freq() function has been prefixed to mark it as
unlocked. The adis16136_{set,get}_filter() functions now hold the state
lock for all the ops that they do.

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