OSDN Git Service

media: uvcvideo: refactor __uvc_ctrl_add_mapping
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 18 Jun 2021 12:29:10 +0000 (14:29 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:47 +0000 (10:07 +0200)
commit866c6bdd5663d4df7cf384b381b6ef8ba9ffd0e4
tree94756ffcf2a53d9434f7ab5b177567aa3000ffc9
parentffccdde5f0e17d2f0d788a9d831a027187890eaa
media: uvcvideo: refactor __uvc_ctrl_add_mapping

Pass the chain instead of the device. We want to keep the reference to
the chain that controls belong to.

We need to delay the initialization of the controls after the chains
have been initialized.

This is a cleanup needed for the next patches.

Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/uvc/uvc_ctrl.c
drivers/media/usb/uvc/uvc_driver.c