summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2025-05-09 18:24:13 +0000
committerHans Verkuil <hverkuil@xs4all.nl>2025-06-16 08:43:23 +0200
commit0aa112e4a880ff809ecd3426d9c7c9e1f4ad3826 (patch)
tree9d1b29ebdb0e15a018f79b5c25fa9df83ff9132a /tools/perf/scripts/python
parentcdf8f4c78ab0c2dc98dd5b017b0a31590c3e046d (diff)
downloadlinux-0aa112e4a880ff809ecd3426d9c7c9e1f4ad3826.tar.gz
linux-0aa112e4a880ff809ecd3426d9c7c9e1f4ad3826.zip
media: uvcvideo: Refactor uvc_ctrl_set_handle()
Today uvc_ctrl_set_handle() covers two use-uses: setting the handle and clearing the handle. The only common code between the two cases is the lockdep_assert_held. The code looks cleaner if we split these two usecases in two functions. We also take this opportunity to use pending_async_ctrls from ctrl where possible. Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://lore.kernel.org/r/20250509-uvc-followup-v1-1-73bcde30d2b5@chromium.org Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions