iio: imu: st_lsm6dsx: enable drdy-mask if available
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 8 Oct 2019 12:05:02 +0000 (14:05 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 15 Oct 2019 20:11:06 +0000 (21:11 +0100)
commit960506ed2c69a87a2004556624c8f702391b2e43
treed11a4b560716dff41a97fcc8536e33fc0ff859fe
parent9d8e91d9169c53301afe861cdd15e3b98155e82f
iio: imu: st_lsm6dsx: enable drdy-mask if available

Enable drdy mask if available in order to mark invalid samples during
sensor bootstrap phase

Tested-by: Mario Tesi <mario.tesi@st.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
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