media: am437x-vpfe: Use a per instance format array instead of a static one
authorBenoit Parrot <bparrot@ti.com>
Fri, 20 Sep 2019 17:05:49 +0000 (14:05 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 19:12:52 +0000 (16:12 -0300)
commit0512ccba072a6c2517d2926009eb223ad163f413
tree22028d6421414a6eb6e74d29bb686fca0305cc13
parent13aa21cfe92ce9ebb51824029d89f19c33f81419
media: am437x-vpfe: Use a per instance format array instead of a static one

Using a statically defined format array would cause issue when
multiple vpfe instance would be connected to sub-device of
different capabilities. We need to use an instance based array
instead to properly maintain a per port/instance format list.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Acked-by: Lad Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/am437x/am437x-vpfe.c
drivers/media/platform/am437x/am437x-vpfe.h