forked from Minki/linux
media: v4l2-async: Use endpoints in __v4l2_async_nf_add_fwnode_remote()
Matching on device fwnode handles is deprecated in favour of endpoint fwnode handles. Switch the __v4l2_async_nf_add_fwnode_remote() function to use the latter. The match code handles backward compatibility by falling by to the device fwnode handle, so this shouldn't introduce any regression. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
229fac6c44
commit
1f391df446
@ -693,7 +693,7 @@ __v4l2_async_nf_add_fwnode_remote(struct v4l2_async_notifier *notif,
|
||||
struct v4l2_async_subdev *asd;
|
||||
struct fwnode_handle *remote;
|
||||
|
||||
remote = fwnode_graph_get_remote_port_parent(endpoint);
|
||||
remote = fwnode_graph_get_remote_endpoint(endpoint);
|
||||
if (!remote)
|
||||
return ERR_PTR(-ENOTCONN);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user