From patchwork Sat Jan 22 09:17:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 12720615 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 57D7CC433F5 for ; Sat, 22 Jan 2022 09:21:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kqB79i3BJrTmiJ6+jWpgTngoiZe22qtbya8+choXd0Q=; b=YczG7RSfe740k7 y5rfZctCWhOgpmhXy3amc6R1yTiqw5jmMKm7pBZ1G8qbfMLAbhVecKLFpO6CM9+vVsKMpuuFvGoJE 5bdyPeq2iqgeju36+gbWh7viMwwreCq7R8gObZlf3Uf9GvsY+N1cviwQZNNWkFER0EpjJoAk0YpXB Kpoa3GBLjNRkOkCcfnuoUKYVWAapFE00T4g56nL9UI0+nmZoXllMhAcZtWNjaFfGJaqGjE4UlbJpg BzbmbSxuumYCzqbwfzFuj6FJhyEHYehISjUAAcuLIywgLLn/ypRtkWNXCOsvbkvIUXHZcDHDShoTM ucoyi7W/P0tUANZR4nfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nBCZ5-00GsZ2-7q; Sat, 22 Jan 2022 09:20:08 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nBCX2-00GrRS-Kx for linux-arm-kernel@lists.infradead.org; Sat, 22 Jan 2022 09:18:02 +0000 Received: by mail-pf1-x42d.google.com with SMTP id e28so6620818pfj.5 for ; Sat, 22 Jan 2022 01:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Nd/CF8vqUX0IATJQuscxS8huseCWfTQmqbhI4UY9O64=; b=KVC2hzrkkazjCViKrnLOLBAg7/PZhZuW5n9ZbxaTdZNc2UauGmE3xhUVMdsM3+gF7P 5BINxyVk+h4ChrIE0lwrtNomRSDTXyw59Ab+fEt2P3Mx9KQwMf7/dy49G5HR1+ZLEFWL Hh+vsa23bWhFlOaOnSJRCnrXlGcXx0JP+09JM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Nd/CF8vqUX0IATJQuscxS8huseCWfTQmqbhI4UY9O64=; b=w9LcHz5OZtvB744vRnhB+QdepdjM+GP2ibT/bqnbR39jMvXgpPvX93rWDFUSwx8Eko bn0K59ixLXNG2xw8V0hikxi09P25ldfG7fJsKPTBVhyy+IbMaMaEw9RhySpw5cbA78sq 6ZkhWRACCOGuhzXmv60rdyApWfYCbFVV6Z9Ra3lji0d2Ht9+lFY8gUNVxvGg96vO28ce vbTCSHDRJE0QOSmUPDINFAUEgZ3lQWKt76vBtLE0tZtyOAjFeUXGku6t6WormkTghNAk Pw/I4f+L3C7GccctBmdA/Ex2x6wcCmAXZPvXkDLhmWQ2FrjZgN/iLlQhUTwI5rPdBK/A ufBA== X-Gm-Message-State: AOAM530Jn1oHLXgfHQRbL3WO8qzWtP4hPTRmYHE5o2Hx50bmnkW3HVwq /ll8i0JlHdQKwm4X2YPnq8az1Q== X-Google-Smtp-Source: ABdhPJzd4uJC769zjxpDoJj+Uzr12VPezjLug+Z4gJO2U3vcZi3VyPGrSQvRsXfDx9Fr1H4uSYC/1A== X-Received: by 2002:a63:3509:: with SMTP id c9mr5401711pga.332.1642843080226; Sat, 22 Jan 2022 01:18:00 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:349f:9373:45d9:eb26]) by smtp.gmail.com with ESMTPSA id s1sm1608100pjn.42.2022.01.22.01.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jan 2022 01:17:59 -0800 (PST) From: Chen-Yu Tsai To: Stephen Boyd , Michael Turquette , Matthias Brugger Cc: Chen-Yu Tsai , Chun-Jie Chen , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/31] clk: mediatek: cpumux: Internalize struct mtk_clk_cpumux Date: Sat, 22 Jan 2022 17:17:07 +0800 Message-Id: <20220122091731.283592-8-wenst@chromium.org> X-Mailer: git-send-email 2.35.0.rc0.227.g00780c9af4-goog In-Reply-To: <20220122091731.283592-1-wenst@chromium.org> References: <20220122091731.283592-1-wenst@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220122_011800_775169_03B356D5 X-CRM114-Status: GOOD ( 12.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org struct mtk_clk_cpumux is an implementation detail of the cpumux clk type, and is not used outside of the implementation. Internalize the definition to minimize leakage of details and shrink the header file. Signed-off-by: Chen-Yu Tsai Reviewed-by: Miles Chen --- drivers/clk/mediatek/clk-cpumux.c | 8 ++++++++ drivers/clk/mediatek/clk-cpumux.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/mediatek/clk-cpumux.c b/drivers/clk/mediatek/clk-cpumux.c index 99a819e3673f..344c6399b22f 100644 --- a/drivers/clk/mediatek/clk-cpumux.c +++ b/drivers/clk/mediatek/clk-cpumux.c @@ -12,6 +12,14 @@ #include "clk-mtk.h" #include "clk-cpumux.h" +struct mtk_clk_cpumux { + struct clk_hw hw; + struct regmap *regmap; + u32 reg; + u32 mask; + u8 shift; +}; + static inline struct mtk_clk_cpumux *to_mtk_clk_cpumux(struct clk_hw *_hw) { return container_of(_hw, struct mtk_clk_cpumux, hw); diff --git a/drivers/clk/mediatek/clk-cpumux.h b/drivers/clk/mediatek/clk-cpumux.h index fda7770fd803..a538f2bbef0d 100644 --- a/drivers/clk/mediatek/clk-cpumux.h +++ b/drivers/clk/mediatek/clk-cpumux.h @@ -7,14 +7,6 @@ #ifndef __DRV_CLK_CPUMUX_H #define __DRV_CLK_CPUMUX_H -struct mtk_clk_cpumux { - struct clk_hw hw; - struct regmap *regmap; - u32 reg; - u32 mask; - u8 shift; -}; - int mtk_clk_register_cpumuxes(struct device_node *node, const struct mtk_composite *clks, int num, struct clk_onecell_data *clk_data);