Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: gyro: Remove redundant pm_runtime_mark_last_busy() calls

pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
pm_runtime_mark_last_busy().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Link: https://patch.msgid.link/20250825135401.1765847-7-sakari.ailus@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Sakari Ailus and committed by
Jonathan Cameron
4c0a7ad7 39978720

+1 -9
+1 -3
drivers/iio/gyro/bmg160_core.c
··· 309 309 310 310 if (on) 311 311 ret = pm_runtime_get_sync(dev); 312 - else { 313 - pm_runtime_mark_last_busy(dev); 312 + else 314 313 ret = pm_runtime_put_autosuspend(dev); 315 - } 316 314 317 315 if (ret < 0) { 318 316 dev_err(dev, "Failed: bmg160_set_power_state for %d\n", on);
-2
drivers/iio/gyro/fxas21002c_core.c
··· 373 373 { 374 374 struct device *dev = regmap_get_device(data->regmap); 375 375 376 - pm_runtime_mark_last_busy(dev); 377 - 378 376 return pm_runtime_put_autosuspend(dev); 379 377 } 380 378
-3
drivers/iio/gyro/mpu3050-core.c
··· 370 370 371 371 out_read_raw_unlock: 372 372 mutex_unlock(&mpu3050->lock); 373 - pm_runtime_mark_last_busy(mpu3050->dev); 374 373 pm_runtime_put_autosuspend(mpu3050->dev); 375 374 376 375 return ret; ··· 661 662 { 662 663 struct mpu3050 *mpu3050 = iio_priv(indio_dev); 663 664 664 - pm_runtime_mark_last_busy(mpu3050->dev); 665 665 pm_runtime_put_autosuspend(mpu3050->dev); 666 666 667 667 return 0; ··· 974 976 if (ret) 975 977 dev_err(mpu3050->dev, "error resetting FIFO\n"); 976 978 977 - pm_runtime_mark_last_busy(mpu3050->dev); 978 979 pm_runtime_put_autosuspend(mpu3050->dev); 979 980 mpu3050->hw_irq_trigger = false; 980 981
-1
drivers/iio/gyro/mpu3050-i2c.c
··· 27 27 { 28 28 struct mpu3050 *mpu3050 = i2c_mux_priv(mux); 29 29 30 - pm_runtime_mark_last_busy(mpu3050->dev); 31 30 pm_runtime_put_autosuspend(mpu3050->dev); 32 31 return 0; 33 32 }