diff options
| author | Claudiu Beznea <[email protected]> | 2025-08-10 12:33:27 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2025-08-16 13:52:20 +0000 |
| commit | a3c6eabe3bbd6b0e7124d68b2d3bc32fed17362e (patch) | |
| tree | ea2deec1711524c7a7d034955c2f5671272c4396 /fs/btrfs/dev-replace.c | |
| parent | iio: adc: ad7380: fix missing max_conversion_rate_hz on adaq4381-4 (diff) | |
| download | kernel-a3c6eabe3bbd6b0e7124d68b2d3bc32fed17362e.tar.gz kernel-a3c6eabe3bbd6b0e7124d68b2d3bc32fed17362e.zip | |
iio: adc: rzg2l: Cleanup suspend/resume path
There is no need to manually track the runtime PM status in the driver.
The pm_runtime_force_suspend() and pm_runtime_force_resume() functions
already call pm_runtime_status_suspended() to check the runtime PM state.
Additionally, avoid calling pm_runtime_put_autosuspend() during the
suspend/resume path, as this would decrease the usage counter of a
potential user that had the ADC open before the suspend/resume cycle.
Fixes: 563cf94f9329 ("iio: adc: rzg2l_adc: Add suspend/resume support")
Reviewed-by: Ulf Hansson <[email protected]>
Reviewed-by: Lad Prabhakar <[email protected]>
Signed-off-by: Claudiu Beznea <[email protected]>
Link: https://patch.msgid.link/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
