[PATCH v1 0/3] PM: runtime: Auto-cleanup macros for pm_runtime_resume_and_get()
From: Rafael J. Wysocki
Date: Fri Sep 19 2025 - 12:40:55 EST
Hi All,
This series adds two auto-cleanup macros for runtime PM usage counter
incrementations carried out by pm_runtime_resume_and_get() ([1/3]),
converts the only user of the previously introduced DEFINE_FREE()
macro for pm_runtime_put() to using one of the new macros ([2/3]),
and drops the DEFINE_FREE() mentioned above ([3/3]).
The new macros should be somewhat more straightforward to use than
the existing _FREE and they enforce error handling.
Thanks!