iio: imu: st_lsm6dsx: add motion report function and call from interrupt
authorSean Nyekjaer <sean@geanix.com>
Mon, 16 Sep 2019 13:56:30 +0000 (15:56 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 5 Oct 2019 11:40:26 +0000 (12:40 +0100)
commit1aabad1fb5e98aa5a7449e0d288b4886aca3ebda
tree849150e643b0dd47fdfbc0e30215fa1431f6f6f2
parenta3aa17d4badf17c9cbe785f3c842c1b62f5b527d
iio: imu: st_lsm6dsx: add motion report function and call from interrupt

Report iio motion events to iio subsystem and filter motion events.
Wakeup will still be on all channels as it's not possible to do the filtering
in hw.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Reviewed-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_core.c