Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1190113pxa; Fri, 28 Aug 2020 06:20:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYue7JG3ePxIRyAWuQy1psCyWsePcKdZ9W0FlbwusIDiXFjqJcEmpUtVGq+36Qh2k593rl X-Received: by 2002:a17:906:2f02:: with SMTP id v2mr1669250eji.465.1598620823005; Fri, 28 Aug 2020 06:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598620822; cv=none; d=google.com; s=arc-20160816; b=NchScAlC+enErkk/xSWeXyXtRevE61YirZqJwK/vVj1u+L29zsy+lzLFfdr8WcQECH q/IOHfu9rdJPQCcnfR1KRkFWAdbIBMcyzfA8GOs2QGTE4Yh+wBP6ZU/GQOLAEyy97v9A Ug9hN2l9X1AugEAEgUFQLsO0AVzy9t6xvzi6wlfBM9UnodrNvDD1r3LYSA2Lxo2K1h64 nSwjQfQqad5YT4UlWCGshe3Y5shZxKGVG+vwoZ/CxkF1FIa3cuq1JlCB24L2YLtrhUEx QtksUrCcn+485Wc3Eks8Vj82N/P/ETR3lJJ4rRIMG6eGy+K6PX/OaXIuNqtQzk9mj770 801g== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=G0Ct5G3V9ZIFi9DeiAAOdjL+ed3hAasX3PCl42bUTU4=; b=I09f3tfiH8GaVNexFusqqxxcU10xZObyCAukeOjV+eRm3tm4POVSIxFGEkCc/p33Tr NGJeg/EGgQ/1f5A2nrAZMpUrjuoKC4Ekwsg6gjvpQduI+3gUbAv0pD/vMVpW96t93odS V4TS5WH69jYP52CUQStw7tm9PLBCNUq54UxCWu6xcWGK8Aa1F4gJn2A/k+x8ODgojzXe wGTc9A/4VwAOu2G2eOFHuUvskipm1NrTD24MQvLxZQctzGx/anGQ/GJ8CA28rVJ8pfqK fBv0Ejh6IJUy1SwmsP/MN90TJPM9LEiVy00yACmdkZM++QQ3Saajt85dOILNiNJa+9Iv CKSg== ARC-Authentication-Results: i=1; mx.google.com; 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 i24si625922ejd.88.2020.08.28.06.20.00; Fri, 28 Aug 2020 06:20:22 -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; 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 S1729461AbgH1NSm (ORCPT + 99 others); Fri, 28 Aug 2020 09:18:42 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:45025 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729547AbgH1NRt (ORCPT ); Fri, 28 Aug 2020 09:17:49 -0400 X-Originating-IP: 90.89.180.255 Received: from lhopital-XPS-13-9360.home (lfbn-tou-1-1372-bdcst.w90-89.abo.wanadoo.fr [90.89.180.255]) (Authenticated sender: kevin.lhopital@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPA id 377E6FF802; Fri, 28 Aug 2020 13:17:45 +0000 (UTC) From: =?UTF-8?q?K=C3=A9vin=20L=27h=C3=B4pital?= To: linux-media@vger.kernel.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, mripard@kernel.org, wens@csie.org, yong.deng@magewell.com, mchehab+samsung@kernel.org, p.zabel@pengutronix.de, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, paul.kocialkowski@bootlin.com, thomas.petazzoni@bootlin.com, =?UTF-8?q?K=C3=A9vin=20L=27h=C3=B4pital?= Subject: [PATCH v2 2/4] media: sunxi: sun6i-csi: Move the sun6i_csi_dev structure to the common header Date: Fri, 28 Aug 2020 15:17:34 +0200 Message-Id: <20200828131737.12483-3-kevin.lhopital@bootlin.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200828131737.12483-1-kevin.lhopital@bootlin.com> References: <20200828131737.12483-1-kevin.lhopital@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Access to the sun6i_csi_dev structure is needed to add the MIPI CSI2 support. Signed-off-by: Kévin L'hôpital --- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 12 ------------ drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c index 055eb0b8e396..680fa31f380a 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c @@ -29,18 +29,6 @@ #define MODULE_NAME "sun6i-csi" -struct sun6i_csi_dev { - struct sun6i_csi csi; - struct device *dev; - - struct regmap *regmap; - struct clk *clk_mod; - struct clk *clk_ram; - struct reset_control *rstc_bus; - - int planar_offset[3]; -}; - static inline struct sun6i_csi_dev *sun6i_csi_to_dev(struct sun6i_csi *csi) { return container_of(csi, struct sun6i_csi_dev, csi); diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h index 8b83d15de0d0..c4a87bdab8c3 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h @@ -48,6 +48,18 @@ struct sun6i_csi { struct sun6i_video video; }; +struct sun6i_csi_dev { + struct sun6i_csi csi; + struct device *dev; + struct regmap *regmap; + struct clk *clk_mod; + struct clk *clk_ram; + struct clk *clk_mipi; + struct clk *clk_misc; + struct reset_control *rstc_bus; + int planar_offset[3]; +}; + /** * sun6i_csi_is_format_supported() - check if the format supported by csi * @csi: pointer to the csi -- 2.17.1