]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: temperature: Remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 25 Aug 2025 13:54:01 +0000 (16:54 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Aug 2025 15:17:09 +0000 (16:17 +0100)
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>
Acked-by: Crt Mori <cmo@melexis.com>
Link: https://patch.msgid.link/20250825135401.1765847-13-sakari.ailus@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/mlx90614.c
drivers/iio/temperature/mlx90632.c
drivers/iio/temperature/mlx90635.c

index 740018d4b3dfb35e4c763f1f68234a77bdf1aed8..8a44a00bfd5ece3899caae88ed35cc40a2dc3db8 100644 (file)
@@ -225,7 +225,6 @@ static void mlx90614_power_put(struct mlx90614_data *data)
        if (!data->wakeup_gpio)
                return;
 
-       pm_runtime_mark_last_busy(&data->client->dev);
        pm_runtime_put_autosuspend(&data->client->dev);
 }
 #else
index c4bf5dc2f266ee6dc3f2602a62a99027353ab2d4..b44f7036c2cc01a2a3992395fa52f4f61e4c4e6f 100644 (file)
@@ -1043,7 +1043,6 @@ static int mlx90632_read_raw(struct iio_dev *indio_dev,
        }
 
 mlx90632_read_raw_pm:
-       pm_runtime_mark_last_busy(&data->client->dev);
        pm_runtime_put_autosuspend(&data->client->dev);
        return ret;
 }
index 0ba08504e9902175574b7d8befae98fbc1b1b6ef..1c8948ca54df3eb8af75fad163e3d8986c47a12f 100644 (file)
@@ -749,7 +749,6 @@ static int mlx90635_read_raw(struct iio_dev *indio_dev,
        }
 
 mlx90635_read_raw_pm:
-       pm_runtime_mark_last_busy(&data->client->dev);
        pm_runtime_put_autosuspend(&data->client->dev);
        return ret;
 }