iio: st_accel: fix interrupt handling on LIS3LV02
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 2 Sep 2015 19:02:58 +0000 (21:02 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Oct 2015 09:27:18 +0000 (10:27 +0100)
commit61fd56309165d4790f99462d893b099f0b07312a
tree68dc53303d005a3a29b9cc1a576d312a483b5faa
parent7cc97d77ee8a90a6389b96a62472cddc02475ffc
iio: st_accel: fix interrupt handling on LIS3LV02

This accelerometer accidentally either emits a DRDY signal or an
IRQ signal. Accidentally I activated the IRQ signal as I thought
it was analogous to the interrupt generator on other ST
accelerometers. This was wrong. After this patch generic_buffer
gives a nice stream of accelerometer readings.

Fixes: 3acddf74f807778f "iio: st-sensors: add support for lis3lv02d accelerometer"
Cc: Denis CIOCCA <denis.ciocca@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/st_accel_core.c