media: uvcvideo: Set media controller entity functions
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 7 Jun 2020 02:05:49 +0000 (04:05 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 10 Sep 2020 12:06:27 +0000 (14:06 +0200)
commitd6834b4b58d110814aaf3469e7fd87d34ae5ae81
treeeab0a3ca246b656d7398bef6be82faf387eb54e9
parent40b222b56ea81aa636a4aa7a84939786369e726b
media: uvcvideo: Set media controller entity functions

The media controller core prints a warning when an entity is registered
without a function being set. This affects the uvcvideo driver, as the
warning was added without first addressing the issue in existing
drivers. The problem is harmless, but unnecessarily worries users. Fix
it by mapping UVC entity types to MC entity functions as accurately as
possible using the existing functions.

Fixes: b50bde4e476d ("[media] v4l2-subdev: use MEDIA_ENT_T_UNKNOWN for new subdevs")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/uvc/uvc_entity.c