Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp354016imm; Thu, 31 May 2018 01:25:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIK0RKmFZHAQLnA862t+W/jwtezKC5P0ZYchDBXDeOqYk0wrwazqAuEIAFh7ZmtISHoV7/B X-Received: by 2002:a17:902:6847:: with SMTP id f7-v6mr6172867pln.173.1527755117510; Thu, 31 May 2018 01:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527755117; cv=none; d=google.com; s=arc-20160816; b=IrKy9cjGyczuEHv0Ju7X4m1kKOlQcArV5CBA57xSYJLy2A57ibqH9ZPOrt1G/5Glvd aX0e4BfYBXFnUqI5GK1/9NvdygCVC6CN9knBH9mA/FJGkTB+SpFOvHnAR2ay28u12isE 1OdQ/95X6UUSNamf5BgAC/JfeqoOaiZov9OofM+JseKParCgXO3Bg1ORch41Qs0aAUbA 6xislGq8uFLkNuzsiGdfyIpoVVlDZBuU1+Bs4aOPhE8j5Lh3OgfjehBI1s3VNw6nTact T7IA5EyMS/nrXrGIqw542v2hwMOrNSaXMOIaxmX0i17qkn2+UauG3EmJhKG4KDOux5xe R32Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=sTRCUkIBD/FElyyMyJEkzJfku8fzMd913XDS4uUDFbY=; b=A8l9EpUDFMzmDDKVdd3uC+CS+czStBakIOWFgkFQlGcipjTNJZrCYQVAtMKtA+KKr5 hGdz3AufcAe5i4L2KrOEzNuXTmDmWj7kpGLgVV5BNDofuylVaG0WKb8MrkEmE9GTX8j0 65wd/4rBVkKkML5LVs/jMYRQJ+3/P27FIeUazyav/OjRCdWqL2A3h5Tdg7RROxz9E9Oz 4rjiHGsUTz7MxOPdZuD3OyMzcgXM3BAros0E6C67Y09M4CpKk0m6p01L6042a5lSNjvv 6xQ8LhapSH1jDeMWxy0X7I5LTItb+AGmOWrJoRTPjsbci2DSsI7FMukT5Vy8/1xuIEHa WHzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pdsyg+HG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1-v6si29628680pge.248.2018.05.31.01.25.03; Thu, 31 May 2018 01:25:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pdsyg+HG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754120AbeEaIXk (ORCPT + 99 others); Thu, 31 May 2018 04:23:40 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:37879 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753957AbeEaIXg (ORCPT ); Thu, 31 May 2018 04:23:36 -0400 Received: by mail-wm0-f67.google.com with SMTP id l1-v6so52491813wmb.2 for ; Thu, 31 May 2018 01:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sTRCUkIBD/FElyyMyJEkzJfku8fzMd913XDS4uUDFbY=; b=Pdsyg+HGBDx9PvpvMJSGw1cbdxyurDPnr0I5QRRz1mp1CvR6HcCaBX33FGtgMOUPRV 02pYW8nAOwyekK2PQOJNcXDtqnPulSmXyLta62wDLn/b1TmVQmkvibHBuKKyjvBCt0tj ip835l303nT01s05bEp1VT+aimt/7jL5F5I/g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sTRCUkIBD/FElyyMyJEkzJfku8fzMd913XDS4uUDFbY=; b=fbQSBVZOvLC2bMKgESsmtaNSuD/pT484SBDNkFcw3796Rr4N0p2aHq4oSH8HlT+Y/x DTdKPGvV7jIXgQD8EGduD6AnOicO3wm8nUgGzMWfhkuwVsrqL8NT0ZsI2AoZKVsc3BRb pTjVZpF3QgZloELqtJGtWS0e3bdLu7GbRDKnllzZn6WsiKlmBwlAMemriz3LeF7puX2X CnELdOvG1pb0Vi+yRGk/e8VkFkacdzrhJSeJQ9dq6tcy3WZelnSXaxRjORkMc5+Gqo/W 7mbjoz54SXin/EXzhPB40ZGyTD59I9QDB2inK7UWA8OqYrpbF2YIuDBJC6EIrNpw1tQH 9jhw== X-Gm-Message-State: ALKqPwfeV91kSEc/tar8464fM5JXTRsLy/2Pri/ceWi/7QZAWdAQ3y6W erHWN37kJDcnSrFTpxQcFlUHIQ== X-Received: by 2002:a1c:16ca:: with SMTP id 193-v6mr3465555wmw.37.1527755014936; Thu, 31 May 2018 01:23:34 -0700 (PDT) Received: from [192.168.27.209] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id t66-v6sm865143wme.6.2018.05.31.01.23.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 01:23:34 -0700 (PDT) Subject: Re: [PATCH v2 15/29] venus: helpers: rename a helper function and use buffer mode from caps To: Tomasz Figa Cc: Mauro Carvalho Chehab , Hans Verkuil , Linux Media Mailing List , Linux Kernel Mailing List , linux-arm-msm , vgarodia@codeaurora.org References: <20180515075859.17217-1-stanimir.varbanov@linaro.org> <20180515075859.17217-16-stanimir.varbanov@linaro.org> From: Stanimir Varbanov Message-ID: Date: Thu, 31 May 2018 11:23:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tomasz, Thanks for the review! On 05/31/2018 10:59 AM, Tomasz Figa wrote: > On Tue, May 15, 2018 at 5:06 PM Stanimir Varbanov > wrote: >> >> Rename is_reg_unreg_needed() to better name is_dynamic_bufmode() and >> use buffer mode from enumerated per codec capabilities. >> >> Signed-off-by: Stanimir Varbanov >> --- >> drivers/media/platform/qcom/venus/helpers.c | 21 +++++++++++---------- >> 1 file changed, 11 insertions(+), 10 deletions(-) >> >> diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c >> index 2b21f6ed7502..1eda19adbf28 100644 >> --- a/drivers/media/platform/qcom/venus/helpers.c >> +++ b/drivers/media/platform/qcom/venus/helpers.c >> @@ -354,18 +354,19 @@ session_process_buf(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) >> return 0; >> } >> >> -static inline int is_reg_unreg_needed(struct venus_inst *inst) >> +static inline int is_dynamic_bufmode(struct venus_inst *inst) > > nit: Could be made bool. And drop inline I guess? :) -- regards, Stan