iio: imu: st_lsm6dsx: introduce conf_lock mutex
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Mon, 1 Jan 2018 18:54:43 +0000 (19:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:43 +0000 (16:03 +0100)
commit335eaedce461c9092e133ce0c6247f5a0b0baf69
tree6482b6d537985f36e2b14f6935d47334765f5026
parent7b9ebe428266fb7e0a6d769bb3ff3fcb6044b15e
iio: imu: st_lsm6dsx: introduce conf_lock mutex

Add conf_lock mutex to prevent concurrent FIFO configuration update

Fixes: 290a6ce11d93 (iio: imu: add support to lsm6dsx driver)
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c