summaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu/bmi323/bmi323_spi.c
diff options
context:
space:
mode:
authorDenis Benato <benato.denis96@gmail.com>2024-08-07 20:56:19 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-08-10 12:19:36 +0200
commitb09999ee1e86a19d43eb6818daa69e577c2fb77a (patch)
treef913df0460b217f36b289de8f9ed9e949459fd34 /drivers/iio/imu/bmi323/bmi323_spi.c
parentiio: trigger: allow devices to suspend/resume theirs associated trigger (diff)
downloadlinux-b09999ee1e86a19d43eb6818daa69e577c2fb77a.tar.xz
linux-b09999ee1e86a19d43eb6818daa69e577c2fb77a.zip
iio: bmi323: suspend and resume triggering on relevant pm operations
Prevent triggers from stop working after the device has entered sleep: use iio_device_suspend_triggering and iio_device_resume_triggering helpers. Signed-off-by: Denis Benato <benato.denis96@gmail.com> Link: https://patch.msgid.link/20240807185619.7261-3-benato.denis96@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/imu/bmi323/bmi323_spi.c')
-rw-r--r--drivers/iio/imu/bmi323/bmi323_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/imu/bmi323/bmi323_spi.c b/drivers/iio/imu/bmi323/bmi323_spi.c
index 571e1cd7ce72..9de3ade78d71 100644
--- a/drivers/iio/imu/bmi323/bmi323_spi.c
+++ b/drivers/iio/imu/bmi323/bmi323_spi.c
@@ -79,6 +79,7 @@ MODULE_DEVICE_TABLE(of, bmi323_of_spi_match);
static struct spi_driver bmi323_spi_driver = {
.driver = {
.name = "bmi323",
+ .pm = pm_ptr(&bmi323_core_pm_ops),
.of_match_table = bmi323_of_spi_match,
},
.probe = bmi323_spi_probe,