Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp653010rwe; Fri, 26 Aug 2022 11:36:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR438+XpqtitHpKlPIg8oBbTaFzErnHdpf8clS0rVkFEt7sqC5STtL4Weo/tPUKtOH72w7UA X-Received: by 2002:a17:90b:3510:b0:1fb:4f93:8141 with SMTP id ls16-20020a17090b351000b001fb4f938141mr5472759pjb.99.1661539007143; Fri, 26 Aug 2022 11:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661539007; cv=none; d=google.com; s=arc-20160816; b=mMS/0lON51bmhRNKVHUYW7dwz5QXaKhtFnDz3IZ9IX4DlMimOhSW9H9JUnxStwRut3 eOVJ3lDbFAjZH0Dv2yDLlRwzSfztXarB2hnRv3XVVIojMG2C94vPP4V4l4MnAJWKmkEe AgqMr3HOcj1v+XBaHvHB2VTpAwLjQ95yyq3N+jfGHZ6/wgdnaUcbHXxhheQ43K2zKRik xX6K9/rwKFoGo9cmkHgn8kEUhn2eLLTtdItYbdkWCHrkDPiaL7w81vGMh8niUyRYUUaW ZogNI+Op25FPvcB76vsAho8gKJUlADNZj6eu7/E/jzlhLxLc/V02VfEFoK8bvuiMYuKz JUbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kYTuQV1Xs4yw7WQUODfE04pJZGBT+lD8NI+hbXDGsg0=; b=GJX8E3pzac4axi7he5TBbGHnssuYW6QnA4I3xhIP+pphKSUIwsyOCfwTcWM/mctQXp GJ006MfIkWKaqpJJtCKk7gc1RPfYGh+3IOAcqYSFKWNLnX+ZWRZmaiugmQsHS+DIErUV ZYc4sIX20s3wkQ8xyTnXuDxYO0KtoQOvFh9rphlhJbHxsx+mTI4VuHmHpWJr/yTIL5oL B69LJL52RZ8Ei8qnA++PdjG/jeJVbSI28XyM14FCHCLH80Ncst0lS7NOMu552ZndaRgc zt49nwbb8WPk2Nys1eMlYW+/Ao7C64w3XjVzPhuvq8Rg+KuuHuxzhtN3aOd+DWkBGODU lAxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="WYKWUz/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr2-20020a17090b4b8200b001fd5e1e0d9asi2329705pjb.2.2022.08.26.11.36.35; Fri, 26 Aug 2022 11:36:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="WYKWUz/t"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344903AbiHZSed (ORCPT + 99 others); Fri, 26 Aug 2022 14:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344959AbiHZSdg (ORCPT ); Fri, 26 Aug 2022 14:33:36 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45EFDE58A1; Fri, 26 Aug 2022 11:33:25 -0700 (PDT) Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 3CBFBFF808; Fri, 26 Aug 2022 18:33:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1661538804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kYTuQV1Xs4yw7WQUODfE04pJZGBT+lD8NI+hbXDGsg0=; b=WYKWUz/tI/JZi7LsD/IDPO7wgmwanoY8T+d5FcYNf9OPzDrGNMEuulSkilqJ30hgRZxPg/ vOb7Sq2vMaMIfk1gKF4/QxDvlc5v3FraEpC3kEhaFjv5B2mldvq6hSHVhu+liLm+D8+iQF qfEkJaG9Ou84C51iamN/aPtnadSH/pVMiG1l/f2jk6CjnvqPfOmhVmDcdnX1x/ZcQB68RA EUD4pktLfxE64n1lvPRzCYfqKyZNoFIbfoXUgC6HsASH7L95J6+RLWOs7ZTX13zjXtIuJJ y5GO6kZz+tqHphXQEapfXGwJpv8Knef9UP18VZ3XQAmUAn7f9iTK/BBE4UtmLg== From: Paul Kocialkowski To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Laurent Pinchart , Maxime Ripard , Thomas Petazzoni , Maxime Ripard Subject: [PATCH v6 15/43] media: sun6i-csi: Move csi buffer definition to main header file Date: Fri, 26 Aug 2022 20:32:12 +0200 Message-Id: <20220826183240.604834-16-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220826183240.604834-1-paul.kocialkowski@bootlin.com> References: <20220826183240.604834-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The buffer structure is a top-level definition, put it in the main header to keep things tidy. No functional change intended. Signed-off-by: Paul Kocialkowski Reviewed-by: Maxime Ripard --- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h | 9 +++++++++ drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h index 1edc3e91ba6f..3c72d865a01a 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h @@ -10,12 +10,21 @@ #include #include +#include #include "sun6i_video.h" #define SUN6I_CSI_NAME "sun6i-csi" #define SUN6I_CSI_DESCRIPTION "Allwinner A31 CSI Device" +struct sun6i_csi_buffer { + struct vb2_v4l2_buffer v4l2_buffer; + struct list_head list; + + dma_addr_t dma_addr; + bool queued_to_csi; +}; + /** * struct sun6i_csi_config - configs for sun6i csi * @pixelformat: v4l2 pixel format (V4L2_PIX_FMT_*) diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c index a40927899828..42b10c61b60d 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c @@ -23,14 +23,6 @@ #define MAX_WIDTH (4800) #define MAX_HEIGHT (4800) -struct sun6i_csi_buffer { - struct vb2_v4l2_buffer v4l2_buffer; - struct list_head list; - - dma_addr_t dma_addr; - bool queued_to_csi; -}; - /* Helpers */ static struct v4l2_subdev * -- 2.37.1