iio: imu: adis[16480]: group RW into a single lock in adis_enable_irq()
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 22 Nov 2019 13:24:13 +0000 (15:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 23 Nov 2019 12:00:04 +0000 (12:00 +0000)
commit100bfa38c8cb81ccbbd17ee4f0c1164f455f6039
tree946c1badea8e9a93adc6d1d6f4074e501bed5526
parent770d465619423a946248018ea39ed9a74c8f2ff4
iio: imu: adis[16480]: group RW into a single lock in adis_enable_irq()

The adis_enable_irq() does a read & a write. This change keeps a lock for
the duration of both operations vs for each op.

The change is also needed in adis16480, since that has it's own
implementation for adis_enable_irq().

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