Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: cadence: csi2rx: Implement get_fwnode_pad op

Use v4l2_subdev_get_fwnode_pad_1_to_1() as the get_fwnode_pad operation.
Cadence CSI2RX maps port numbers and pad indices 1:1.

Reviewed-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
Tested-by: Yemike Abhilash Chandra <y-abhilashchandra@ti.com> (on SK-AM68)
Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Jai Luthra and committed by
Hans Verkuil
4d09706d 3e743cd0

+1
+1
drivers/media/platform/cadence/cdns-csi2rx.c
··· 595 595 596 596 static const struct media_entity_operations csi2rx_media_ops = { 597 597 .link_validate = v4l2_subdev_link_validate, 598 + .get_fwnode_pad = v4l2_subdev_get_fwnode_pad_1_to_1, 598 599 }; 599 600 600 601 static int csi2rx_async_bound(struct v4l2_async_notifier *notifier,