From patchwork Mon Jan 11 15:16:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 360477 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp2968198jai; Mon, 11 Jan 2021 07:19:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzc2wXlskgVzPo7PmapdFJdpYceeqsmhc7nKBCWyg1szgc3VgBXgqaVuh+OfhE2xXo9azh2 X-Received: by 2002:a17:907:105e:: with SMTP id oy30mr11174314ejb.495.1610378351744; Mon, 11 Jan 2021 07:19:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610378351; cv=none; d=google.com; s=arc-20160816; b=YRPsy8gMg5ROfBJEnrHT6/uGMAvjeF6sopO6Mz+WKv7SeHvnbcfV5cjGkqsyW3uw+m jGonnAdPP/CGgROoWig7zKHdFFgBN2puiCkFMu3MUvIg6k7rNr1y3IwPa9GBJZIAlYOd igZtI3xuOYjvhoKfHzoZrxJd7dQ+0K5WSY+geFGZGMF8UNkQ1VIXh01SmaUWLUcM5MFy TV6NNT/DS96sSlO6y/SL91Pk80QA6JdD3aPvZlon+m4a9WzYWF8wY7AeflImLTDy/6Nr aD9yXvBg7NwYYGyuClYJGSlbeW1uvniToNmc2JkztAHHhwuDf4lbG1i68vnt7UjKTyr8 p8iw== 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=11XIjl8N1c5ceR4Iw5NSQYalbjU7j/TP5wwy7z5hkjc=; b=aHmbjqLH1/7YSCdtaPvBeFNvtT79irKaB8MkBliMikU3+JYmwJpsz1a26JT/dMRR/L JCq0G/xJYQMXoG4BG5l7HoxW9IcWZuxk/2CCnHyJV6GLyPPwZGt/IR8OJn+1ioWP8rvL jkDashvuJzEQeGQRB8h07TaZfPSW1IrIWIA5u/lbDoL1PFtlSV4oYrEB3kSEpEiKr3et juQauqbTN3aSVZgkeUExxYyjGUITsYzv6LRFJrtd9i0PRAmXawOkmoVsJhpV2jwINmIA 30dbCMsqrIK4vW1oulJMEqX7Jfv08eaqGGISd3ao/Lcc4G7l9qglvj5R1Lyan7moFz5E lkGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CEU/R6qR"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si6596995ejf.648.2021.01.11.07.19.11; Mon, 11 Jan 2021 07:19:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b="CEU/R6qR"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733055AbhAKPSI (ORCPT + 15 others); Mon, 11 Jan 2021 10:18:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:54002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732254AbhAKPSI (ORCPT ); Mon, 11 Jan 2021 10:18:08 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0CA0622A83; Mon, 11 Jan 2021 15:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610378247; bh=mgPG975hZ/zT7DR9gnPDc3VlS/vIBBlXErvGoIyOQWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CEU/R6qRPr5KhtJFMPm17zQv7HLG6IaERWmPfyAX+1j3ziELESpn8Jfmv38x6wngQ QVSXOnFmqxwcjWSEocK7IwNRO6mWPo8EOLXTcH7spsoKGiBGxZ+Cxa1dO68MVN8EAr zDB5+vsWo9uc42skVoiaqbGeUGXvuT7ugiryLoIXn1U74+ICw1vHy1bgATy2Ui8UNv kdMnNc8xjmrJiFLzdYxSt3W65LYJdoixUPIsOiKVetdIHK9DNDyjEOpvjOMIxQaxZW NxDVhfhUjP3lEcja809HaEWeZ//NekLEWwN5W0wAy5+mHh3bw7ZvuUiZCB1O+EMKAt U42i/cUB8ctew== From: Vinod Koul To: Bjorn Andersson , Mark Brown , Wolfram Sang Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Andy Gross , Matthias Kaehlcke , Douglas Anderson , Sumit Semwal , Amit Pundir , linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] soc: qcom: geni: move struct geni_wrapper to header Date: Mon, 11 Jan 2021 20:46:46 +0530 Message-Id: <20210111151651.1616813-3-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210111151651.1616813-1-vkoul@kernel.org> References: <20210111151651.1616813-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org I2C geni driver needs to access struct geni_wrapper, so move it to header. Signed-off-by: Vinod Koul --- drivers/soc/qcom/qcom-geni-se.c | 15 --------------- include/linux/qcom-geni-se.h | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) -- 2.26.2 diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c index 285ed86c2bab..a3868228ea05 100644 --- a/drivers/soc/qcom/qcom-geni-se.c +++ b/drivers/soc/qcom/qcom-geni-se.c @@ -79,21 +79,6 @@ */ #define MAX_CLK_PERF_LEVEL 32 -#define NUM_AHB_CLKS 2 - -/** - * struct geni_wrapper - Data structure to represent the QUP Wrapper Core - * @dev: Device pointer of the QUP wrapper core - * @base: Base address of this instance of QUP wrapper core - * @ahb_clks: Handle to the primary & secondary AHB clocks - * @to_core: Core ICC path - */ -struct geni_wrapper { - struct device *dev; - void __iomem *base; - struct clk_bulk_data ahb_clks[NUM_AHB_CLKS]; - struct geni_icc_path to_core; -}; static const char * const icc_path_names[] = {"qup-core", "qup-config", "qup-memory"}; diff --git a/include/linux/qcom-geni-se.h b/include/linux/qcom-geni-se.h index e3f4b16040d9..cb4e40908f9f 100644 --- a/include/linux/qcom-geni-se.h +++ b/include/linux/qcom-geni-se.h @@ -38,6 +38,21 @@ struct geni_icc_path { unsigned int avg_bw; }; +#define NUM_AHB_CLKS 2 + +/** + * @struct geni_wrapper - Data structure to represent the QUP Wrapper Core + * @dev: Device pointer of the QUP wrapper core + * @base: Base address of this instance of QUP wrapper core + * @ahb_clks: Handle to the primary & secondary AHB clocks + */ +struct geni_wrapper { + struct device *dev; + void __iomem *base; + struct clk_bulk_data ahb_clks[NUM_AHB_CLKS]; + struct geni_icc_path to_core; +}; + /** * struct geni_se - GENI Serial Engine * @base: Base Address of the Serial Engine's register block