linux/drivers/iio/imu
Jonathan Cameron 40b54cbebf iio: imu: mpu6050: Balance runtime pm + use pm_runtime_resume_and_get()
Remove an unblanced pm_runtime_put_sync_suspend() call
in inv_pu_pm_disable().  Not this call is not a bug, because the runtime
pm core will not allow the reference counter to go negative.  It is
however confusing and serves no purpose.

pm_runtime_resume_and_get() case found using coccicheck script under
review at:
https://lore.kernel.org/lkml/20210427141946.2478411-1-Julia.Lawall@inria.fr/

pm_runtime_resume_and_get() returns <= 0 only so simplify related checks
to bring this more inline with nearby calls.

This is a prequel to taking a closer look at the runtime pm in IIO drivers
in general.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20210516162103.1332291-2-jic23@kernel.org
2021-06-16 14:53:13 +01:00
..
bmi160 iio: Drop Duplicated "mount-matrix" parameter 2021-06-03 18:24:13 +01:00
inv_icm42600 iio: Drop Duplicated "mount-matrix" parameter 2021-06-03 18:24:13 +01:00
inv_mpu6050 iio: imu: mpu6050: Balance runtime pm + use pm_runtime_resume_and_get() 2021-06-16 14:53:13 +01:00
st_lsm6dsx iio: Drop Duplicated "mount-matrix" parameter 2021-06-03 18:24:13 +01:00
st_lsm9ds0 iio: st_sensors: Add lsm9ds0 IMU support 2021-05-17 13:54:22 +01:00
adis16400.c iio: imu: remove unused private data assigned with spi_set_drvdata() 2021-06-13 17:00:17 +01:00
adis16460.c iio: imu: remove unused private data assigned with spi_set_drvdata() 2021-06-13 17:00:17 +01:00
adis16475.c iio: imu: remove unused private data assigned with spi_set_drvdata() 2021-06-13 17:00:17 +01:00
adis16480.c iio: imu: remove unused private data assigned with spi_set_drvdata() 2021-06-13 17:00:17 +01:00
adis_buffer.c iio: adis: add burst_max_speed_hz variable 2021-05-17 13:49:09 +01:00
adis_trigger.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
adis.c iio: adis: Cleanout unused headers 2021-06-04 09:28:10 +01:00
fxos8700_core.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
fxos8700_i2c.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
fxos8700_spi.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
Kconfig iio: st_sensors: Add lsm9ds0 IMU support 2021-05-17 13:54:22 +01:00
kmx61.c iio: imu: kmx61: Balance runtime pm + use pm_runtime_resume_and_get() 2021-05-17 13:54:26 +01:00
Makefile iio: st_sensors: Add lsm9ds0 IMU support 2021-05-17 13:54:22 +01:00