staging: bcm2835-codec: set device_caps in struct video_device
authorChen-Yu Tsai <wens@csie.org>
Mon, 22 Jul 2019 14:20:55 +0000 (22:20 +0800)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:03 +0000 (16:33 +0100)
commit15b36ab5ffb20606c320ebeaa0c7e5c95954e710
tree99ab320825a1d7ee1688bd3644ed403a3ce6ed91
parent54ca5e3f8e0b8b6f8c0d132c424c7d776286d310
staging: bcm2835-codec: set device_caps in struct video_device

Instead of filling in the struct v4l2_capability device_caps
field, fill in the struct video_device device_caps field.

That way the V4L2 core knows what the capabilities of the
video device are.

This is similar to a cleanup series by Hans Verkuil [1].

[1] https://www.spinics.net/lists/linux-media/msg153313.html

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c