]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: imu: st_lsm6dsx: add wakeup-source option
authorSean Nyekjaer <sean@geanix.com>
Mon, 16 Sep 2019 13:56:28 +0000 (15:56 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 5 Oct 2019 11:36:39 +0000 (12:36 +0100)
commit4c997dfa692d8bdc9f2906057d17f1c61d5dcda2
tree89be98454b994b6dec6086a9f70ed298a4fb4d0a
parentb5969abfa8b8ed43ebd93479d394f664bd4a5a87
iio: imu: st_lsm6dsx: add wakeup-source option

This add ways for the SoC to wake from accelerometer wake events.

In the suspend function we skip disabling the sensor if wakeup-source
and events are activated.

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_core.c