media: pci: ipu3-cio2: Obtain remote pad from endpoint
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 2 May 2023 09:14:08 +0000 (12:14 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 14:21:22 +0000 (16:21 +0200)
commit7ab9484332d9688df1ce4b87d3adfcb4ded9b903
tree6c094237cf9c6f6e060434fcf6cc06e388b7ffc4
parentec178312b81448b30947b2cb66b849e4bf43d941
media: pci: ipu3-cio2: Obtain remote pad from endpoint

Use the endpoint fwnode to find out the remote pad, instead of using the
first source pad found. Also improve error messages.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/intel/ipu3/ipu3-cio2-main.c