Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp316743pxa; Fri, 21 Aug 2020 08:02:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp15vn7A6y1A8HzRmJhZDDTMrdYsdLBm9eenNFiKmcatB2EyOFiJCxDdXWrf7m1DbzY7dU X-Received: by 2002:a05:6402:1c88:: with SMTP id cy8mr3348730edb.24.1598022171040; Fri, 21 Aug 2020 08:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598022171; cv=none; d=google.com; s=arc-20160816; b=09IX4enxA6x7BvD9gkigC5b7ZqXrE0i4jU9KIcY0DsOoLFjkN2Uc9CYxh7Vc9Kxs5c VXv1sMfTKYxFOjHRohlTLatQgaAMzJmx1Mpg4Yszz1y6V8BZ4mVv/Qjvq2YpRIRmGLWp P+si/ugsUZg3JDlsHFSNyic6mMyieOjRAmZGUHt1hkf/8L8JYbziiLQBLfj5RMyNt+KQ ayS2Pxp/577Jd09VsjlqawyMx0VF1X345cWtntZf4EgrCGsqJvxqBHrgydzFbfG8rwpP Phqr0hzg90EhbAzNX5HpKWqHM/Dqa97tKFzGMSwksE5rdOIOOAWEVF0wTNfOf/ghebyF 2GhQ== 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=I8huID0jP3sp86qtcILdDHuQZX1Uchp+7qE1u8eK8Ez5R8xBA33rabgVc3QCXc4dNp uf3Oo8ug6P0RPWE/XuRFl3um5o9gLjGcV4oCBf8C63Pw4lCm8RNMh5OjEcnUUeIMOIbE mCWEfi8x6X9x9BQXfZPeL+jM72bPHdN3RBvvldsQ0J7iPS6cXMvN2UJvAjhtAm6kuZA9 6hv//ZNG3au8u4y+G+CpW3n797/d1GphOnGN4msK1QMs5XJBOmN5C4iOwi8T9hxW2E5+ nf3sh4m/UrCWyBGnByS2s9rxW16Vp8aDAgos1LWMuFYS5+OdWES5wfCE9tSe1tWS/ZjU i26w== 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 l18si1332191ejk.275.2020.08.21.08.02.26; Fri, 21 Aug 2020 08:02:51 -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 S1727084AbgHUPBV (ORCPT + 99 others); Fri, 21 Aug 2020 11:01:21 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:56173 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727955AbgHUPAf (ORCPT ); Fri, 21 Aug 2020 11:00:35 -0400 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 relay11.mail.gandi.net (Postfix) with ESMTPA id 7D666100006; Fri, 21 Aug 2020 15:00:31 +0000 (UTC) From: =?UTF-8?q?K=C3=A9vin=20L=27h=C3=B4pital?= To: linux-media@vger.kernel.org Cc: mchehab@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, mripard@kernel.org, wens@csie.org, yong.deng@magewell.com, p.zabel@pengutronix.de, 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 4/7] media: sunxi: sun6i-csi: Move the sun6i_csi_dev structure to the common header Date: Fri, 21 Aug 2020 16:59:32 +0200 Message-Id: <20200821145935.20346-5-kevin.lhopital@bootlin.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200821145935.20346-1-kevin.lhopital@bootlin.com> References: <20200821145935.20346-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