]> Git Repo - linux.git/commitdiff
media: v4l2-async: Use endpoints in __v4l2_async_nf_add_fwnode_remote()
authorLaurent Pinchart <[email protected]>
Mon, 21 Mar 2022 14:51:34 +0000 (14:51 +0000)
committerMauro Carvalho Chehab <[email protected]>
Sun, 24 Apr 2022 07:13:07 +0000 (08:13 +0100)
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 <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/v4l2-core/v4l2-async.c

index 436bd6900fd8e005eaddd5b7883c2665523d7891..c6995718237a448a714bbc4fc71554c1aade8f35 100644 (file)
@@ -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);
 
This page took 0.05847 seconds and 4 git commands to generate.