Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1323202pxk; Fri, 25 Sep 2020 11:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdpOc8pJeIMExnKtKODACFD2Y2NESXDLwapijlGjBLxMZ+sBqnT+bRqvUBcOyZ++0vlMP3 X-Received: by 2002:a17:906:a251:: with SMTP id bi17mr3956347ejb.526.1601059067307; Fri, 25 Sep 2020 11:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601059067; cv=none; d=google.com; s=arc-20160816; b=lbMqhjvXMiuG5KWfMRIegSCSVdjyjGBO8Ea9gRXkd1qRJPXKqVSQJKKK8YorMv4Kc1 43hjPVzwVpjCcZBWT+F4jPh6SZEvjMBybtLwkpfIuXpd3+p7z7p+fAZCR0NXuYCdKM7/ HwepbVes9YPbOspzIsRs2KrBDKlStZwZtiGTjuWaL92Mt61gCRnpjJBI+a0lyBzLXjcu kh3BWRLwubvnZFDUugglF9YWvb7446AUhBDkf7H4EarHq2LKeUCX7ObQR+C3tySIsNva WDnVTTbf2r74WOK/0LKIfkB7qx9MYd0yYCc8dYGgrUPzeLUs97/S7xIExKetOSv28Ow7 Zxaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=lKdrItijlZnmGeseIFi2VkKxHr1iShcVRw2+QbxzHmw=; b=wNdEqmFKuHh28ICRwEmhAsjGe4S/2AOlqHBj+QTG87XVZndgrnAt76ngoV5VFwGkKo tJq7QjfAEwLY9tOq4oan6xixqhFFWhEj315pq04mNAO5FlEIRGYQgpkTFOfVo3XQGvtH bIxpJuGC/7ok5aKc3szh8JrIfcy1GE6qjrFRsks/SRBwbMlY3oFpVXlIzJBgZQf6dJQk VjnvayuJsuJDEKn02lT2H1L0qjJtna36lPLRSYSy9agCc5cckmh1sj8YVEIDa3dvYiry B6goDg913ipP3q7XjZjCHdvSDwy1fzm1y2NkQaB889kHQHJxFYOWEZ0S2qFx6ebbYWfH TfwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gOvfZcx1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si2433120ejp.429.2020.09.25.11.37.24; Fri, 25 Sep 2020 11:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gOvfZcx1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729997AbgIYSdX (ORCPT + 99 others); Fri, 25 Sep 2020 14:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729686AbgIYSdW (ORCPT ); Fri, 25 Sep 2020 14:33:22 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28429C0613CE for ; Fri, 25 Sep 2020 11:33:22 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id y14so3288729pgf.12 for ; Fri, 25 Sep 2020 11:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lKdrItijlZnmGeseIFi2VkKxHr1iShcVRw2+QbxzHmw=; b=gOvfZcx12dq41X1Rm1set4/1fqU/R/no1spPF14GnvJn/Em2ZGHjAQEksNrfx47rd1 p5ELKy9GLseLoBi2GhcC3MwO2kRH3Kd5bk9p037F2ARKlaphxz1fDLO+CAAH225VfsxW 84kmBVsUO2f6+4N7Glq2I1FhxUkq9kbeLMQcL4KykolqR2YMS5hd06yAOWInBYnI7w3u Ijq5q1VJC0ynOHaumO5FE+Db4aoOeJEZfBzX/EgEzaZ/usovIql38kkWXb5kC25ZCljk HdA8RvSEe+BdJ8uHCcT8LLb3FgHJdliSaCSLIDExE+9k5SYJYiLLirls705GX67hARLq RqrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lKdrItijlZnmGeseIFi2VkKxHr1iShcVRw2+QbxzHmw=; b=WNRiSHG0Z3sIEQ286F4InTBEw7v571BsQZOUJ7XBxOx76BxNlzW/S3xAek2lZ9aS0u PIAQgUa/6eDjnXiQm+SqbYaQQmMNM7MhymbR53z5pYUSEe0CkMC1JBLsqVewpe1nZv0Y HWOzF8/XmbukPSS8ax06FI3+I/N08hT2Lh+UujDbZ57cp7HT0Wpl7DL2e/G01fHseVaw xare59pA1WvMql0g3RptYcw5IpHu+Sno0gzUuvVmyJIos8JgrCm9LfZ1t6oxsLSQJacZ +c0byFmH6rAZopUme0X/D21jHI1bFS3E3BjhhaSCmtwfvE+xWIz7kS4mMSOVvU3o0dEd yp/g== X-Gm-Message-State: AOAM53263N+CjWBxgxEleRS82PGiuRwcI+3o//RZRz5zyxtyiJIeFweF AkMX/TG1l35mGGoTT12zc9kRRw== X-Received: by 2002:a17:902:1:b029:d2:5631:d975 with SMTP id 1-20020a1709020001b02900d25631d975mr746279pla.20.1601058801734; Fri, 25 Sep 2020 11:33:21 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id r16sm2554546pjo.19.2020.09.25.11.33.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Sep 2020 11:33:21 -0700 (PDT) From: Corentin Labbe To: gregkh@linuxfoundation.org, mchehab@kernel.org, hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Corentin Labbe Subject: [PATCH RFT/RFC v2 21/47] staging: media: zoran: Change zoran_v4l_set_format parameter from zoran_fh to zoran Date: Fri, 25 Sep 2020 18:30:31 +0000 Message-Id: <1601058657-14042-22-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601058657-14042-1-git-send-email-clabbe@baylibre.com> References: <1601058657-14042-1-git-send-email-clabbe@baylibre.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need to get rid of zoran_fh, so let's change function arguments. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zoran/zoran_driver.c index 518ba19e1e0a..db85978a2893 100644 --- a/drivers/staging/media/zoran/zoran_driver.c +++ b/drivers/staging/media/zoran/zoran_driver.c @@ -401,11 +401,9 @@ static void jpg_fbuffer_free(struct zoran_fh *fh) /* * V4L Buffer grabbing */ - -static int zoran_v4l_set_format(struct zoran_fh *fh, int width, int height, +static int zoran_v4l_set_format(struct zoran *zr, int width, int height, const struct zoran_format *format) { - struct zoran *zr = fh->zr; int bpp; /* Check size and format of the grab wanted */ @@ -1671,7 +1669,7 @@ static int zoran_s_fmt_vid_cap(struct file *file, void *__fh, map_mode_raw(fh); - res = zoran_v4l_set_format(fh, fmt->fmt.pix.width, fmt->fmt.pix.height, + res = zoran_v4l_set_format(zr, fmt->fmt.pix.width, fmt->fmt.pix.height, &zoran_formats[i]); if (res) return res; -- 2.26.2