linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] media: ti-vpe: cal: use of_graph_get_remote_endpoint()
       [not found] <87mv8tez69.wl%kuninori.morimoto.gx@renesas.com>
@ 2017-06-28  0:33 ` Kuninori Morimoto
  2017-06-28  8:51   ` Sylwester Nawrocki
  2017-07-07 12:50   ` Benoit Parrot
  0 siblings, 2 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2017-06-28  0:33 UTC (permalink / raw)
  To: Rob Herring, devicetree
  Cc: Benoit Parrot, Mauro Carvalho Chehab, 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>
---
based on 4c9c3d595f1bad021cc126d20879df4016801736
("of_graph: add of_graph_get_remote_endpoint()")

 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 2/3] media: ti-vpe: cal: use of_graph_get_remote_endpoint()
  2017-06-28  0:33 ` [PATCH 2/3] media: ti-vpe: cal: use of_graph_get_remote_endpoint() Kuninori Morimoto
@ 2017-06-28  8:51   ` Sylwester Nawrocki
  2017-07-07 12:50   ` Benoit Parrot
  1 sibling, 0 replies; 3+ messages in thread
From: Sylwester Nawrocki @ 2017-06-28  8:51 UTC (permalink / raw)
  To: Kuninori Morimoto, linux-media
  Cc: Rob Herring, devicetree, Benoit Parrot, Mauro Carvalho Chehab,
	linux-kernel

On 06/28/2017 02:33 AM, Kuninori Morimoto wrote:
> 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>

Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

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

* Re: [PATCH 2/3] media: ti-vpe: cal: use of_graph_get_remote_endpoint()
  2017-06-28  0:33 ` [PATCH 2/3] media: ti-vpe: cal: use of_graph_get_remote_endpoint() Kuninori Morimoto
  2017-06-28  8:51   ` Sylwester Nawrocki
@ 2017-07-07 12:50   ` Benoit Parrot
  1 sibling, 0 replies; 3+ messages in thread
From: Benoit Parrot @ 2017-07-07 12:50 UTC (permalink / raw)
  To: Kuninori Morimoto
  Cc: Rob Herring, devicetree, Mauro Carvalho Chehab, linux-media,
	linux-kernel


Acked-by: Benoit Parrot <bparrot@ti.com>

Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> wrote on Wed [2017-Jun-28 00:33:00 +0000]:
> 
> 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>
> ---
> based on 4c9c3d595f1bad021cc126d20879df4016801736
> ("of_graph: add of_graph_get_remote_endpoint()")
> 
>  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	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-07 12:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87mv8tez69.wl%kuninori.morimoto.gx@renesas.com>
2017-06-28  0:33 ` [PATCH 2/3] media: ti-vpe: cal: use of_graph_get_remote_endpoint() Kuninori Morimoto
2017-06-28  8:51   ` Sylwester Nawrocki
2017-07-07 12:50   ` Benoit Parrot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).