media: uvcvideo: Allow extra entities
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 23 Dec 2020 13:35:18 +0000 (14:35 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 14:01:41 +0000 (15:01 +0100)
commitcae79e50d1222010fde8c522410c315f74d35c40
tree235389c0a7ba4a2aaba9d23cb4392741ca596b3c
parent351509c604dcb065305a165d7552058c2cbc447d
media: uvcvideo: Allow extra entities

Increase the size of the id, to avoid collisions with entities
implemented by the driver that are not part of the UVC device.

Entities exposed by the UVC device use IDs 0-255, extra entities
implemented by the driver (such as the GPIO entity) use IDs 256 and
up.

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_driver.c
drivers/media/usb/uvc/uvcvideo.h