diff options
| author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2026-03-26 13:42:49 +0300 |
|---|---|---|
| committer | Sakari Ailus <sakari.ailus@linux.intel.com> | 2026-05-06 12:40:10 +0300 |
| commit | d9f8489c4325607d8a7c4a2860ce8c72a9874ff1 (patch) | |
| tree | ade9ce6a86915bb281b12b6c4909c3bdb9947ed7 /include/linux | |
| parent | 0b42657bea6ba635226e8ef551076d024ceacdc9 (diff) | |
| download | linux-d9f8489c4325607d8a7c4a2860ce8c72a9874ff1.tar.xz | |
media: Documentation: Use right function to test device power state
Tell driver authors to use pm_runtime_get_if_active() instead of
pm_runtime_get_if_in_use() to check the device's power state in the s_ctrl
callback. pm_runtime_get_if_active() is the right function to use here
since it returns non-zero if the device is powered on rather than its
PM runtime usage_count is non-zero.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
