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: pressure: 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-11-sakari.ailus@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Sakari Ailus and committed by
Jonathan Cameron
dfb68a8e e3c3e495

-10
-5
drivers/iio/pressure/bmp280-core.c
··· 752 752 753 753 pm_runtime_get_sync(data->dev); 754 754 ret = bmp280_read_raw_impl(indio_dev, chan, val, val2, mask); 755 - pm_runtime_mark_last_busy(data->dev); 756 755 pm_runtime_put_autosuspend(data->dev); 757 756 758 757 return ret; ··· 926 927 927 928 pm_runtime_get_sync(data->dev); 928 929 ret = bmp280_write_raw_impl(indio_dev, chan, val, val2, mask); 929 - pm_runtime_mark_last_busy(data->dev); 930 930 pm_runtime_put_autosuspend(data->dev); 931 931 932 932 return ret; ··· 2253 2255 2254 2256 pm_runtime_get_sync(data->dev); 2255 2257 ret = bmp580_nvmem_read_impl(priv, offset, val, bytes); 2256 - pm_runtime_mark_last_busy(data->dev); 2257 2258 pm_runtime_put_autosuspend(data->dev); 2258 2259 2259 2260 return ret; ··· 2327 2330 2328 2331 pm_runtime_get_sync(data->dev); 2329 2332 ret = bmp580_nvmem_write_impl(priv, offset, val, bytes); 2330 - pm_runtime_mark_last_busy(data->dev); 2331 2333 pm_runtime_put_autosuspend(data->dev); 2332 2334 2333 2335 return ret; ··· 3116 3120 { 3117 3121 struct bmp280_data *data = iio_priv(indio_dev); 3118 3122 3119 - pm_runtime_mark_last_busy(data->dev); 3120 3123 pm_runtime_put_autosuspend(data->dev); 3121 3124 3122 3125 return 0;
-1
drivers/iio/pressure/icp10100.c
··· 265 265 (be16_to_cpu(measures[1]) >> 8); 266 266 *temperature = be16_to_cpu(measures[2]); 267 267 268 - pm_runtime_mark_last_busy(&st->client->dev); 269 268 error_measure: 270 269 pm_runtime_put_autosuspend(&st->client->dev); 271 270 return ret;
-2
drivers/iio/pressure/mpl115.c
··· 108 108 ret = mpl115_comp_pressure(data, val, val2); 109 109 if (ret < 0) 110 110 return ret; 111 - pm_runtime_mark_last_busy(data->dev); 112 111 pm_runtime_put_autosuspend(data->dev); 113 112 114 113 return IIO_VAL_INT_PLUS_MICRO; ··· 117 118 ret = mpl115_read_temp(data); 118 119 if (ret < 0) 119 120 return ret; 120 - pm_runtime_mark_last_busy(data->dev); 121 121 pm_runtime_put_autosuspend(data->dev); 122 122 *val = ret >> 6; 123 123
-2
drivers/iio/pressure/zpa2326.c
··· 697 697 698 698 zpa2326_sleep(indio_dev); 699 699 700 - pm_runtime_mark_last_busy(parent); 701 700 pm_runtime_put_autosuspend(parent); 702 701 } 703 702 ··· 707 708 pm_runtime_enable(parent); 708 709 pm_runtime_set_autosuspend_delay(parent, 1000); 709 710 pm_runtime_use_autosuspend(parent); 710 - pm_runtime_mark_last_busy(parent); 711 711 pm_runtime_put_autosuspend(parent); 712 712 } 713 713