iio: adis: add helpers for locking
authorNuno Sa <nuno.sa@analog.com>
Thu, 18 Feb 2021 11:40:39 +0000 (12:40 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 11 Mar 2021 20:47:12 +0000 (20:47 +0000)
commit15aacc980dcb326ef33dfc32772faea1067f9178
tree82ee6c255be66febf1c567e94d8b31a1399ed41d
parent3b15e6a532b30691e7c464e7d74c2d699c23d439
iio: adis: add helpers for locking

Add some helpers to lock and unlock the device. As this is such a simple
change, we update all the users that were using the lock already in this
patch.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210218114039.216091-5-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16400.c
drivers/iio/imu/adis16475.c
drivers/iio/imu/adis16480.c
include/linux/iio/imu/adis.h