media: vimc: Make capture devices and subdevices use different link_validates
authorNícolas F. R. A. Prado <nfraprado@protonmail.com>
Wed, 30 Oct 2019 12:30:40 +0000 (09:30 -0300)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 5 Nov 2019 13:32:14 +0000 (10:32 -0300)
commit31172e520b688524acaac61de1f1f9fc89665ee7
tree635f82fd5b4cd93907f6024d0dad17f4376ea7bb
parente62138403a841e4f5c08fe338cfe9d83eb3e5e0f
media: vimc: Make capture devices and subdevices use different link_validates

Instead of validating the links to capture devices and subdevices with
the same function, use the default v4l function for links between
subdevices and only use a different function for validating between
capture device and subdevice.
This change should also ease future work to associate multiple mbus
codes for the same pixelformat in vimc_pix_map.

These changes were tested with
v4l2-compliance SHA: 3f806630e2ecbcebe31872b865c5c4b42f111a99, 64 bits
and passed all tests:
Grand Total for vimc device /dev/media0: 451, Succeeded: 451, Failed: 0, Warnings: 0

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@protonmail.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/vimc/vimc-capture.c
drivers/media/platform/vimc/vimc-common.c
drivers/media/platform/vimc/vimc-common.h