linux-brain/drivers/iio/gyro
Jonathan Cameron 921b361ce3 iio: gyro: fxa21002c: Balance runtime pm + use pm_runtime_resume_and_get().
[ Upstream commit 41120ebbb1eb5e9dec93320e259d5b2c93226073 ]

In both the probe() error path and remove() pm_runtime_put_noidle()
is called which will decrement the runtime pm reference count.
However, there is no matching function to have raised the reference count.
Not this isn't a fix as the runtime pm core will stop the reference count
going negative anyway.

An alternative would have been to raise the count in these paths, but
it is not clear why that would be necessary.

Whilst we are here replace some boilerplate with pm_runtime_resume_and_get()
Found using coccicheck script under review at:
https://lore.kernel.org/lkml/20210427141946.2478411-1-Julia.Lawall@inria.fr/

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20210509113354.660190-2-jic23@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:10:41 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile iio: gyro: fxas21002c: add spi driver 2019-04-22 11:34:12 +01:00
adis16080.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 149 2019-05-30 11:25:18 -07:00
adis16130.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 149 2019-05-30 11:25:18 -07:00
adis16136.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
adis16260.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 149 2019-05-30 11:25:18 -07:00
adxrs450.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
bmg160.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bmg160_core.c iio: gyro: bmg160: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:38 +02:00
bmg160_i2c.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
bmg160_spi.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
fxas21002c.h iio: gyro: add core driver for fxas21002c 2019-04-22 11:34:09 +01:00
fxas21002c_core.c iio: gyro: fxa21002c: Balance runtime pm + use pm_runtime_resume_and_get(). 2021-07-20 16:10:41 +02:00
fxas21002c_i2c.c iio: gyro: fxas21002c: add i2c driver 2019-04-22 11:34:12 +01:00
fxas21002c_spi.c iio: gyro: fxas21002c: add spi driver 2019-04-22 11:34:12 +01:00
hid-sensor-gyro-3d.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 335 2019-06-05 17:37:06 +02:00
itg3200_buffer.c iio:gyro:itg3200: Fix timestamp alignment and prevent data leak. 2020-11-05 11:43:30 +01:00
itg3200_core.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mpu3050-core.c iio: gyro: mpu3050: Fix reported temperature value 2021-05-19 10:08:31 +02:00
mpu3050-i2c.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
mpu3050.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ssp_gyro_sensor.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
st_gyro.h iio:gyro: introduce st_gyro_get_settings() function 2019-07-27 22:52:05 +01:00
st_gyro_buffer.c iio:st_sensors: remove buffer allocation at each buffer enable 2019-08-11 09:26:04 +01:00
st_gyro_core.c iio: st_gyro: Correct data for LSM9DS0 gyro 2020-02-01 09:34:36 +00:00
st_gyro_i2c.c iio: make st_sensors drivers use regmap 2019-07-27 22:52:06 +01:00
st_gyro_spi.c iio: move 3-wire spi initialization to st_sensors_spi 2019-07-27 22:52:06 +01:00