]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: proximity: Remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 25 Aug 2025 13:54:00 +0000 (16:54 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Aug 2025 15:16:54 +0000 (16:16 +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>
Link: https://patch.msgid.link/20250825135401.1765847-12-sakari.ailus@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
drivers/iio/proximity/srf04.c

index 01c013acfda2a2d34f89248178ddf9340a77ad11..21336b8f122aec421ac9675c56e52a6d2eaf12f4 100644 (file)
@@ -185,7 +185,6 @@ static int lidar_get_measurement(struct lidar_data *data, u16 *reg)
                }
                ret = -EIO;
        }
-       pm_runtime_mark_last_busy(&client->dev);
        pm_runtime_put_autosuspend(&client->dev);
 
        return ret;
index f9d32f9aba1f943010185595994bf83d80e75d8a..e97f9a20ac7a953b5c108af394deec40c140fe48 100644 (file)
@@ -117,10 +117,8 @@ static int srf04_read(struct srf04_data *data)
        udelay(data->cfg->trigger_pulse_us);
        gpiod_set_value(data->gpiod_trig, 0);
 
-       if (data->gpiod_power) {
-               pm_runtime_mark_last_busy(data->dev);
+       if (data->gpiod_power)
                pm_runtime_put_autosuspend(data->dev);
-       }
 
        /* it should not take more than 20 ms until echo is rising */
        ret = wait_for_completion_killable_timeout(&data->rising, HZ/50);