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>pull/1354/merge
parent
3997872020
commit
4c0a7ad785
|
|
@ -309,10 +309,8 @@ static int bmg160_set_power_state(struct bmg160_data *data, bool on)
|
|||
|
||||
if (on)
|
||||
ret = pm_runtime_get_sync(dev);
|
||||
else {
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
else
|
||||
ret = pm_runtime_put_autosuspend(dev);
|
||||
}
|
||||
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "Failed: bmg160_set_power_state for %d\n", on);
|
||||
|
|
|
|||
|
|
@ -373,8 +373,6 @@ static int fxas21002c_pm_put(struct fxas21002c_data *data)
|
|||
{
|
||||
struct device *dev = regmap_get_device(data->regmap);
|
||||
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
|
||||
return pm_runtime_put_autosuspend(dev);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -370,7 +370,6 @@ static int mpu3050_read_raw(struct iio_dev *indio_dev,
|
|||
|
||||
out_read_raw_unlock:
|
||||
mutex_unlock(&mpu3050->lock);
|
||||
pm_runtime_mark_last_busy(mpu3050->dev);
|
||||
pm_runtime_put_autosuspend(mpu3050->dev);
|
||||
|
||||
return ret;
|
||||
|
|
@ -662,7 +661,6 @@ static int mpu3050_buffer_postdisable(struct iio_dev *indio_dev)
|
|||
{
|
||||
struct mpu3050 *mpu3050 = iio_priv(indio_dev);
|
||||
|
||||
pm_runtime_mark_last_busy(mpu3050->dev);
|
||||
pm_runtime_put_autosuspend(mpu3050->dev);
|
||||
|
||||
return 0;
|
||||
|
|
@ -976,7 +974,6 @@ static int mpu3050_drdy_trigger_set_state(struct iio_trigger *trig,
|
|||
if (ret)
|
||||
dev_err(mpu3050->dev, "error resetting FIFO\n");
|
||||
|
||||
pm_runtime_mark_last_busy(mpu3050->dev);
|
||||
pm_runtime_put_autosuspend(mpu3050->dev);
|
||||
mpu3050->hw_irq_trigger = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ static int mpu3050_i2c_bypass_deselect(struct i2c_mux_core *mux, u32 chan_id)
|
|||
{
|
||||
struct mpu3050 *mpu3050 = i2c_mux_priv(mux);
|
||||
|
||||
pm_runtime_mark_last_busy(mpu3050->dev);
|
||||
pm_runtime_put_autosuspend(mpu3050->dev);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue