From: Joonyoung Shim <jy0922.shim@samsung.com>
To: Zhaowei Yuan <zhaowei.yuan@samsung.com>, m.chehab@samsung.com
Cc: linux-media@vger.kernel.org, k.debski@samsung.com,
kyungmin.park@samsung.com, jtp.park@samsung.com,
linux-samsung-soc@vger.kernel.org
Subject: Re: [PATCH] media: s5p_mfc: remove unnecessary calling to function video_devdata()
Date: Wed, 23 Jul 2014 11:43:58 +0900 [thread overview]
Message-ID: <53CF216E.9040209@samsung.com> (raw)
In-Reply-To: <1406076572-5719-1-git-send-email-zhaowei.yuan@samsung.com>
Hi Zhaowei,
On 07/23/2014 09:49 AM, Zhaowei Yuan wrote:
> Since we have get vdev by calling video_devdata() at the beginning of
> s5p_mfc_open(), we should just use vdev instead of calling video_devdata()
> again in the following code.
>
> Change-Id: I869051762d33b50a7c0dbc8149b072e70b89c6b9
Please don't put this in patch when you submit at upstream. Change-Id
means nothing to us.
> Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
> ---
> drivers/media/platform/s5p-mfc/s5p_mfc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
> index d57b306..d508cbc 100755
> --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
> +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
> @@ -709,7 +709,7 @@ static int s5p_mfc_open(struct file *file)
> ret = -ENOMEM;
> goto err_alloc;
> }
> - v4l2_fh_init(&ctx->fh, video_devdata(file));
> + v4l2_fh_init(&ctx->fh, vdev);
> file->private_data = &ctx->fh;
> v4l2_fh_add(&ctx->fh);
> ctx->dev = dev;
> --
> 1.7.9.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2014-07-23 2:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-23 0:49 [PATCH] media: s5p_mfc: remove unnecessary calling to function video_devdata() Zhaowei Yuan
2014-07-23 2:43 ` Joonyoung Shim [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-07-23 4:06 Zhaowei Yuan
2014-07-29 13:08 ` Sylwester Nawrocki
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=53CF216E.9040209@samsung.com \
--to=jy0922.shim@samsung.com \
--cc=jtp.park@samsung.com \
--cc=k.debski@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.chehab@samsung.com \
--cc=zhaowei.yuan@samsung.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