From patchwork Thu Sep 4 02:28:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaowei Yuan X-Patchwork-Id: 4842251 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3A8F79F2EC for ; Thu, 4 Sep 2014 02:32:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 73FCF2020F for ; Thu, 4 Sep 2014 02:32:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 92A0E201EF for ; Thu, 4 Sep 2014 02:32:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757035AbaIDCcl (ORCPT ); Wed, 3 Sep 2014 22:32:41 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:10761 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757027AbaIDCcl (ORCPT ); Wed, 3 Sep 2014 22:32:41 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBC00L85V2FFJA0@mailout4.samsung.com>; Thu, 04 Sep 2014 11:32:39 +0900 (KST) X-AuditID: cbfee61a-f79e46d00000134f-8c-5407cf47ee3b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 41.0A.04943.74FC7045; Thu, 04 Sep 2014 11:32:39 +0900 (KST) Received: from localhost ([109.123.123.72]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NBC001W9V1Z0170@mmp2.samsung.com>; Thu, 04 Sep 2014 11:32:39 +0900 (KST) From: Zhaowei Yuan To: linux-media@vger.kernel.org, k.debski@samsung.com, m.chehab@samsung.com, kyungmin.park@samsung.com, jtp.park@samsung.com Cc: linux-samsung-soc@vger.kernel.org Subject: [PATCH] [media] s5p_mfc: unify variable naming style Date: Thu, 04 Sep 2014 10:28:43 +0800 Message-id: <1409797723-2670-1-git-send-email-zhaowei.yuan@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKJMWRmVeSWpSXmKPExsVy+t9jQV338+whBrs2SlocWXuVyeLH6wts Fmeb3rBb9GzYymox4/w+JouL6+Qd2Dz6tqxi9Pi8SS6AKYrLJiU1J7MstUjfLoEr4/X9B8wF +/krtixXbmCczNvFyMkhIWAiMa1lMjOELSZx4d56ti5GLg4hgemMEtuPLWSCcH4zSqxfv5UV pIpNQFdi5Z3NYLaIQJ3EhrnvwLqZBVQl/q3/A2YLC9hK7Nw8EcxmAYovfPwKrJ5XwF3iwvvr QDYH0DYFiTmTbCYwci9gZFjFKJpakFxQnJSea6hXnJhbXJqXrpecn7uJEez5Z1I7GFc2WBxi FOBgVOLhXRDAFiLEmlhWXJl7iFGCg1lJhHf2WfYQId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rwH Wq0DhQTSE0tSs1NTC1KLYLJMHJxSDYzSGw6sFI25c4whfGXt5I7rnuofFDUPbGkXnvJLd/kR w4rvRXFvuHftKeJZP005WbCcoezvt/i3sf2erxc07imp2sM91bs29H1LJHfi/iCbmlIH/yNq J47cWWr3JeDKEtMO/v77SX3fxS1++077+Vh0/d8SmXiL6e7tywO9+JKULhsqbfk+w0aJpTgj 0VCLuag4EQAVkXkL+AEAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Variable frame_size represents the size of plane luminance here, not just frame size, its naming style should be unified as frame_size_ch and frame_size_mv. Signed-off-by: Zhaowei Yuan --- drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c index 58ec7bb..94023db 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c @@ -377,7 +377,7 @@ static int s5p_mfc_set_dec_stream_buffer_v5(struct s5p_mfc_ctx *ctx, /* Set decoding frame buffer */ static int s5p_mfc_set_dec_frame_buffer_v5(struct s5p_mfc_ctx *ctx) { - unsigned int frame_size, i; + unsigned int frame_size_lu, i; unsigned int frame_size_ch, frame_size_mv; struct s5p_mfc_dev *dev = ctx->dev; unsigned int dpb; @@ -465,10 +465,10 @@ static int s5p_mfc_set_dec_frame_buffer_v5(struct s5p_mfc_ctx *ctx) ctx->codec_mode); return -EINVAL; } - frame_size = ctx->luma_size; + frame_size_lu = ctx->luma_size; frame_size_ch = ctx->chroma_size; frame_size_mv = ctx->mv_size; - mfc_debug(2, "Frm size: %d ch: %d mv: %d\n", frame_size, frame_size_ch, + mfc_debug(2, "Frm size: %d ch: %d mv: %d\n", frame_size_lu, frame_size_ch, frame_size_mv); for (i = 0; i < ctx->total_dpb_count; i++) { /* Bank2 */ @@ -496,7 +496,7 @@ static int s5p_mfc_set_dec_frame_buffer_v5(struct s5p_mfc_ctx *ctx) mfc_debug(2, "Not enough memory has been allocated\n"); return -ENOMEM; } - s5p_mfc_write_info_v5(ctx, frame_size, ALLOC_LUMA_DPB_SIZE); + s5p_mfc_write_info_v5(ctx, frame_size_lu, ALLOC_LUMA_DPB_SIZE); s5p_mfc_write_info_v5(ctx, frame_size_ch, ALLOC_CHROMA_DPB_SIZE); if (ctx->codec_mode == S5P_MFC_CODEC_H264_DEC) s5p_mfc_write_info_v5(ctx, frame_size_mv, ALLOC_MV_SIZE);