]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: uvcvideo: Create uvc_pm_(get|put) functions
authorRicardo Ribalda <ribalda@chromium.org>
Thu, 27 Mar 2025 21:05:28 +0000 (21:05 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 9 May 2025 13:29:12 +0000 (15:29 +0200)
commit2f101572c0a3ae4630f2a57c8033b78ee84ac5a6
tree5373baf5fb9ebaa150774d1699d5d51654bd184c
parent14f6e205e5599c2217b68c05b903ce162e7c1e27
media: uvcvideo: Create uvc_pm_(get|put) functions

Most of the times that we have to call uvc_status_(get|put) we need to
call the usb_autopm_ functions.

Create a new pair of functions that automate this for us. This
simplifies the current code and future PM changes in the driver.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Message-ID: <20250327-uvc-granpower-ng-v6-2-35a2357ff348@chromium.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/uvc/uvc_v4l2.c
drivers/media/usb/uvc/uvcvideo.h