linux-stable/drivers/iio/gyro
Rui Miguel Silva 2a54c8c9eb iio: gyro: fxas21002c: balance runtime power in error path
If we fail to read temperature or axis we need to decrement the
runtime pm reference count to trigger autosuspend.

Add the call to pm_put to do that in case of error.

Fixes: a0701b6263 ("iio: gyro: add core driver for fxas21002c")
Suggested-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Link: https://lore.kernel.org/linux-iio/CBBZA9T1OY9C.2611WSV49DV2G@arch-thunder/
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-05-22 08:32:27 +01:00
..
adis16080.c
adis16130.c
adis16136.c
adis16260.c
adxrs290.c iio: fix devm_iio_trigger_alloc with parent.cocci 2021-03-25 19:13:50 +00:00
adxrs450.c
bmg160.h
bmg160_core.c iio: fix devm_iio_trigger_alloc with parent.cocci 2021-03-25 19:13:50 +00:00
bmg160_i2c.c
bmg160_spi.c
fxas21002c.h
fxas21002c_core.c iio: gyro: fxas21002c: balance runtime power in error path 2021-05-22 08:32:27 +01:00
fxas21002c_i2c.c
fxas21002c_spi.c
hid-sensor-gyro-3d.c iio: hid-sensors: Move get sensitivity attribute to hid-sensor-common 2021-03-11 20:47:09 +00:00
itg3200_buffer.c iio: set default trig->dev.parent 2021-03-25 19:13:50 +00:00
itg3200_core.c
Kconfig iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER 2021-05-10 14:01:48 +01:00
Makefile
mpu3050-core.c iio: gyro: mpu3050: Fix reported temperature value 2021-05-10 14:01:48 +01:00
mpu3050-i2c.c
mpu3050.h
ssp_gyro_sensor.c
st_gyro.h
st_gyro_buffer.c
st_gyro_core.c
st_gyro_i2c.c
st_gyro_spi.c