vim2m/vicodec: set device_caps in video_device struct

2018-11-15 Thread Hans Verkuil
Instead of setting device_caps/capabilities in the querycap ioctl, set it in struct video_device instead. Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c index 72245183b077..35703c251d1b 100644 --- a/drive

[PATCH v2] vim2m/vicodec: set device_caps in video_device struct

2018-11-21 Thread Hans Verkuil
Instead of setting device_caps/capabilities in the querycap ioctl, set it in struct video_device instead. Signed-off-by: Hans Verkuil --- Changes in v2: vfd->device_caps was only set for the first of the two video devices. Set it for the second video_device as well. --- drivers/media/platform/vi