From: Niklas Söderlund Date: Wed, 24 May 2017 00:15:31 +0000 (-0300) Subject: [media] rcar-vin: use pad information when verifying media bus format X-Git-Tag: Ubuntu-5.13.0-19.19~13141^2~234 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=557d61672f3f5a0f66954602379008e549824ead;p=mirror_ubuntu-jammy-kernel.git [media] rcar-vin: use pad information when verifying media bus format Use information about pad index when enumerating mbus codes. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/rcar-vin/rcar-core.c b/drivers/media/platform/rcar-vin/rcar-core.c index 24ce6967f711..94c5c8d905d9 100644 --- a/drivers/media/platform/rcar-vin/rcar-core.c +++ b/drivers/media/platform/rcar-vin/rcar-core.c @@ -53,6 +53,7 @@ static bool rvin_mbus_supported(struct rvin_graph_entity *entity) }; code.index = 0; + code.pad = entity->source_pad; while (!v4l2_subdev_call(sd, pad, enum_mbus_code, NULL, &code)) { code.index++; switch (code.code) {