]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: uvcvideo: Refactor the status irq API
authorRicardo Ribalda <ribalda@chromium.org>
Thu, 26 Sep 2024 05:49:57 +0000 (05:49 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 8 Oct 2024 14:04:45 +0000 (16:04 +0200)
commit44f703386021e90cc33346f0ed3beb0274cedd68
tree590113f5f8faf9767dfea526ad147adb2ea22304
parent3dd075fe8ebbc6fcbf998f81a75b8c4b159a6195
media: uvcvideo: Refactor the status irq API

There are two different use-cases of uvc_status():

- adding/removing a user when the camera is open/closed
- stopping/starting when the camera is suspended/resumed

Make the API reflect these two use-cases and move all the refcounting
and locking logic to the uvc_status.c file.

No functional change is expected from this patch.

Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20240926-guenter-mini-v7-1-690441953d4a@chromium.org
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/usb/uvc/uvc_driver.c
drivers/media/usb/uvc/uvc_status.c
drivers/media/usb/uvc/uvc_v4l2.c
drivers/media/usb/uvc/uvcvideo.h