OSDN Git Service

media: rtl2832_sdr: set device_caps in struct video_device
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 4 Jun 2019 11:19:54 +0000 (07:19 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Jun 2019 12:46:01 +0000 (08:46 -0400)
commit372332b111b7cf5642d80ad927ef80dcb3a66a84
treed26268ea9e36a8e95b1bb599ccdd3a273de06024
parent8c3854d03bd7b86e8f36e6d9b07b4a6bc20deccd
media: rtl2832_sdr: 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.

But this only really works if all drivers use this, so convert
this SDR driver in this patch.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/dvb-frontends/rtl2832_sdr.c