All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][resend] media: ti-vpe: cal: use of_graph_get_remote_endpoint()
@ 2017-08-07  2:13 Kuninori Morimoto
  2017-08-07  6:57 ` Hans Verkuil
  0 siblings, 1 reply; 3+ messages in thread
From: Kuninori Morimoto @ 2017-08-07  2:13 UTC (permalink / raw)
  To: Benoit Parrot, Mauro Carvalho Chehab; +Cc: linux-media, linux-kernel


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Now, we can use of_graph_get_remote_endpoint(). Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 drivers/media/platform/ti-vpe/cal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/ti-vpe/cal.c b/drivers/media/platform/ti-vpe/cal.c
index 177faa3..0c7ddf8 100644
--- a/drivers/media/platform/ti-vpe/cal.c
+++ b/drivers/media/platform/ti-vpe/cal.c
@@ -1702,7 +1702,7 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst)
 	asd->match_type = V4L2_ASYNC_MATCH_FWNODE;
 	asd->match.fwnode.fwnode = of_fwnode_handle(sensor_node);
 
-	remote_ep = of_parse_phandle(ep_node, "remote-endpoint", 0);
+	remote_ep = of_graph_get_remote_endpoint(ep_node);
 	if (!remote_ep) {
 		ctx_dbg(3, ctx, "can't get remote-endpoint\n");
 		goto cleanup_exit;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH][resend] media: ti-vpe: cal: use of_graph_get_remote_endpoint()
  2017-08-07  2:13 [PATCH][resend] media: ti-vpe: cal: use of_graph_get_remote_endpoint() Kuninori Morimoto
@ 2017-08-07  6:57 ` Hans Verkuil
  2017-08-07  7:04   ` Kuninori Morimoto
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Verkuil @ 2017-08-07  6:57 UTC (permalink / raw)
  To: Kuninori Morimoto, Benoit Parrot, Mauro Carvalho Chehab
  Cc: linux-media, linux-kernel

On 07/08/17 04:13, Kuninori Morimoto wrote:
> 
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> Now, we can use of_graph_get_remote_endpoint(). Let's use it.

I'm not sure why this is resent. It's part of a pending pull request
so I expect it to be merged this week.

Regards,

	Hans

> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>  drivers/media/platform/ti-vpe/cal.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/platform/ti-vpe/cal.c b/drivers/media/platform/ti-vpe/cal.c
> index 177faa3..0c7ddf8 100644
> --- a/drivers/media/platform/ti-vpe/cal.c
> +++ b/drivers/media/platform/ti-vpe/cal.c
> @@ -1702,7 +1702,7 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst)
>  	asd->match_type = V4L2_ASYNC_MATCH_FWNODE;
>  	asd->match.fwnode.fwnode = of_fwnode_handle(sensor_node);
>  
> -	remote_ep = of_parse_phandle(ep_node, "remote-endpoint", 0);
> +	remote_ep = of_graph_get_remote_endpoint(ep_node);
>  	if (!remote_ep) {
>  		ctx_dbg(3, ctx, "can't get remote-endpoint\n");
>  		goto cleanup_exit;
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH][resend] media: ti-vpe: cal: use of_graph_get_remote_endpoint()
  2017-08-07  6:57 ` Hans Verkuil
@ 2017-08-07  7:04   ` Kuninori Morimoto
  0 siblings, 0 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2017-08-07  7:04 UTC (permalink / raw)
  To: Hans Verkuil
  Cc: Benoit Parrot, Mauro Carvalho Chehab, linux-media, linux-kernel


Hi Hans

> > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> > 
> > Now, we can use of_graph_get_remote_endpoint(). Let's use it.
> 
> I'm not sure why this is resent. It's part of a pending pull request
> so I expect it to be merged this week.

Sorry, I didn't know that.
Thank you for your help

Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-07  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-07  2:13 [PATCH][resend] media: ti-vpe: cal: use of_graph_get_remote_endpoint() Kuninori Morimoto
2017-08-07  6:57 ` Hans Verkuil
2017-08-07  7:04   ` Kuninori Morimoto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.