public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: linux-media@vger.kernel.org, niklas.soderlund@ragnatech.se
Subject: Re: [PATCH v2 9/9] davinci: Use a local media device pointer instead
Date: Fri, 09 Dec 2016 17:21:23 +0200	[thread overview]
Message-ID: <1662555.iXAvrS7ZxI@avalon> (raw)
In-Reply-To: <1481295222-14743-10-git-send-email-sakari.ailus@linux.intel.com>

Hi Sakari,

Thank you for the patch.

On Friday 09 Dec 2016 16:53:42 Sakari Ailus wrote:
> The function has a local variable that points to the media device; use
> that instead of finding the media device under the entity.
> 
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/staging/media/davinci_vpfe/vpfe_video.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/media/davinci_vpfe/vpfe_video.c
> b/drivers/staging/media/davinci_vpfe/vpfe_video.c index 03269d3..8b2117e
> 100644
> --- a/drivers/staging/media/davinci_vpfe/vpfe_video.c
> +++ b/drivers/staging/media/davinci_vpfe/vpfe_video.c
> @@ -145,7 +145,7 @@ static int vpfe_prepare_pipeline(struct
> vpfe_video_device *video) pipe->outputs[pipe->output_num++] = video;
> 
>  	mutex_lock(&mdev->graph_mutex);
> -	ret = media_graph_walk_init(&graph, entity->graph_obj.mdev);
> +	ret = media_graph_walk_init(&graph, mdev);
>  	if (ret) {
>  		mutex_unlock(&mdev->graph_mutex);
>  		return -ENOMEM;
> @@ -300,7 +300,7 @@ static int vpfe_pipeline_enable(struct vpfe_pipeline
> *pipe)
> 
>  	mdev = entity->graph_obj.mdev;
>  	mutex_lock(&mdev->graph_mutex);
> -	ret = media_graph_walk_init(&pipe->graph, entity->graph_obj.mdev);
> +	ret = media_graph_walk_init(&pipe->graph, mdev);
>  	if (ret)
>  		goto out;
>  	media_graph_walk_start(&pipe->graph, entity);

-- 
Regards,

Laurent Pinchart


      reply	other threads:[~2016-12-09 15:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-09 14:53 [PATCH v2] Media pipeline and graph walk cleanups and fixes Sakari Ailus
2016-12-09 14:53 ` [PATCH v2 1/9] media: entity: Fix stream count check Sakari Ailus
2016-12-09 14:53 ` [PATCH v2 2/9] media: entity: Be vocal about failing sanity checks Sakari Ailus
2016-12-09 14:53 ` [PATCH v2 3/9] media: Rename graph and pipeline structs and functions Sakari Ailus
2016-12-09 14:53 ` [PATCH v2 4/9] media: entity: Split graph walk iteration into two functions Sakari Ailus
2016-12-09 14:53 ` [PATCH v2 5/9] media: Use single quotes to quote entity names Sakari Ailus
2016-12-09 15:19   ` Laurent Pinchart
2016-12-09 14:53 ` [PATCH v2 6/9] media: entity: Add debug information to graph walk Sakari Ailus
2016-12-09 14:53 ` [PATCH v2 7/9] omap3isp: Use a local media device pointer instead Sakari Ailus
2016-12-09 15:20   ` Laurent Pinchart
2016-12-09 14:53 ` [PATCH v2 8/9] xilinx: " Sakari Ailus
2016-12-09 15:21   ` Laurent Pinchart
2016-12-09 14:53 ` [PATCH v2 9/9] davinci: " Sakari Ailus
2016-12-09 15:21   ` Laurent Pinchart [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1662555.iXAvrS7ZxI@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=niklas.soderlund@ragnatech.se \
    --cc=sakari.ailus@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox