media: v4l2-async: Use endpoints in __v4l2_async_nf_add_fwnode_remote()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 21 Mar 2022 14:51:34 +0000 (14:51 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
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 <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-async.c

index 436bd69..c699571 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);