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

authored by

Sakari Ailus and committed by
Jonathan Cameron
4a0f3759 d5b9423b

-5
-2
drivers/iio/chemical/atlas-sensor.c
··· 425 425 if (ret) 426 426 return ret; 427 427 428 - pm_runtime_mark_last_busy(&data->client->dev); 429 428 ret = pm_runtime_put_autosuspend(&data->client->dev); 430 429 if (ret) 431 430 return ret; ··· 490 491 491 492 ret = regmap_bulk_read(data->regmap, reg, val, sizeof(*val)); 492 493 493 - pm_runtime_mark_last_busy(dev); 494 494 pm_runtime_put_autosuspend(dev); 495 495 496 496 return ret;
-3
drivers/iio/chemical/bme680_core.c
··· 950 950 return ret; 951 951 952 952 ret = __bme680_read_raw(indio_dev, chan, val, val2, mask); 953 - pm_runtime_mark_last_busy(dev); 954 953 pm_runtime_put_autosuspend(dev); 955 954 956 955 return ret; ··· 1020 1021 return ret; 1021 1022 1022 1023 ret = __bme680_write_raw(indio_dev, chan, val, val2, mask); 1023 - pm_runtime_mark_last_busy(dev); 1024 1024 pm_runtime_put_autosuspend(dev); 1025 1025 1026 1026 return ret; ··· 1138 1140 struct bme680_data *data = iio_priv(indio_dev); 1139 1141 struct device *dev = regmap_get_device(data->regmap); 1140 1142 1141 - pm_runtime_mark_last_busy(dev); 1142 1143 pm_runtime_put_autosuspend(dev); 1143 1144 return 0; 1144 1145 }