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

Configure Feed

Select the types of activity you want to include in your feed.

iio: proximity: 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>
Link: https://patch.msgid.link/20250825135401.1765847-12-sakari.ailus@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Sakari Ailus and committed by
Jonathan Cameron
4cba0d0d dfb68a8e

+1 -4
-1
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c
··· 185 185 } 186 186 ret = -EIO; 187 187 } 188 - pm_runtime_mark_last_busy(&client->dev); 189 188 pm_runtime_put_autosuspend(&client->dev); 190 189 191 190 return ret;
+1 -3
drivers/iio/proximity/srf04.c
··· 117 117 udelay(data->cfg->trigger_pulse_us); 118 118 gpiod_set_value(data->gpiod_trig, 0); 119 119 120 - if (data->gpiod_power) { 121 - pm_runtime_mark_last_busy(data->dev); 120 + if (data->gpiod_power) 122 121 pm_runtime_put_autosuspend(data->dev); 123 - } 124 122 125 123 /* it should not take more than 20 ms until echo is rising */ 126 124 ret = wait_for_completion_killable_timeout(&data->rising, HZ/50);