From: Sakari Ailus Date: Wed, 7 Oct 2020 11:09:19 +0000 (+0200) Subject: media: ccs: Get the endpoint by port rather than any next endpoint X-Git-Tag: accepted/tizen/unified/20230118.172025~7835^2~255 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d27be0ad943b22d491d1f00e2edbb93a87d58376;p=platform%2Fkernel%2Flinux-rpi.git media: ccs: Get the endpoint by port rather than any next endpoint Get the first endpoint from port 0 instead of the next one, whatever it might be. There are no other ports so there's no functional change. Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/ccs/ccs-core.c b/drivers/media/i2c/ccs/ccs-core.c index 12c30fb..11c6de7 100644 --- a/drivers/media/i2c/ccs/ccs-core.c +++ b/drivers/media/i2c/ccs/ccs-core.c @@ -3090,7 +3090,8 @@ static int ccs_get_hwconfig(struct ccs_sensor *sensor, struct device *dev) int i; int rval; - ep = fwnode_graph_get_next_endpoint(fwnode, NULL); + ep = fwnode_graph_get_endpoint_by_id(fwnode, 0, 0, + FWNODE_GRAPH_ENDPOINT_NEXT); if (!ep) return -ENODEV;