From patchwork Wed Feb 2 13:48:13 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: 12732945 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 04DF3C433F5 for ; Wed, 2 Feb 2022 13:56:32 +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=UFkSvsrnz5D0nM94s3GoHcagh1bBU+A9GcdXwWOKyX8=; b=JaBSlPXhXYoufU DAPw6kSljNgyaFJmHEH1DWJY+wFNllpXu7njsW8jgjbsR7woZQ2Dt8Da5Vd+Lho3tDKPoT6/GyrKT OAj+cgVGA3LxrrC7CGW7YGGEa7jmK/VFWhA0kyGFBf2tXD1aB/+2n9MgJ4/3Wj2DFbXD5NEj7HPJ0 bfKbvw0iMymkm82suortFPzhfKbyYR+E+PK8VQVmTuuzsAGxf5V/RK5/ROU6kw1wuRCNYaAq+Y8xv xGZa9FtL2BkmcxgoaboG0kSrpofG5GDXtviWXxIN66UOzp0rpIOgYD0U1iS1P6/UzOQaZOKxIHhb9 jib5wo5yySKkFEup6nng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFG60-00FS7n-2N; Wed, 02 Feb 2022 13:54:52 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFG1H-00FP3f-8e for linux-arm-kernel@lists.infradead.org; Wed, 02 Feb 2022 13:50:00 +0000 Received: by mail-pf1-x434.google.com with SMTP id a19so12873483pfx.4 for ; Wed, 02 Feb 2022 05:49:58 -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=koVwH4W47ZnmdMQC+i7F7tu84t6ApcfQpNxUmrQL9bs=; b=EUM4BcWxvZOnU+GfCT/HmA+o6iiYZ40xeNYZXdyjB43nQld9ZRzxpOBZJN3lPU1dkh nNfqSuXf5AQE4HSoKTJJowRfXBPTAHMVVa4V+AwB2qZoP1hvwei1qItoMr/uwbVyENfO R/SOqvzD2gT1TnOw+QeTbgU2hZ08ncFdINjaU= 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=koVwH4W47ZnmdMQC+i7F7tu84t6ApcfQpNxUmrQL9bs=; b=O5omWFiqRdORbtJhL6vAcX6Z2N9Oh8Wf32wC8Z7sbFLhTnOQDTmpswjXkk7+T8wijq zEM927x/cZX5CnfLMuKwamhWvIWGEx7tKjDiMdg86KV66Kr1/mMjdklkvaHKSdeMvYM7 Ux4NISzdYM1dyzKY/RNXKkMvNEytPiP64LPma4fkUYaQaBJTLJAaLuAIZwmot3GPKs77 icfFgSkWwH0U8QAYvxCuBaCZ8VAcoyxuWI4nq5/xcY5oraeASi8Ku5GZvsj6mw2ulzja KwTSpQZPa9SqbGRS5dPSivmuUQK6KH+C/S5P/XewPvTrASukG1QgNXq7kFpCARVgXsxy dhVA== X-Gm-Message-State: AOAM5322ceJeJpz3t1ulZlB95HVMtz9otH++YYteDkHFOv/BD6mJtKZ6 SLb8CvZnTSkJ0556cfENkzyiig== X-Google-Smtp-Source: ABdhPJxTnVZoIVxU07+X5AzoQO2ik1+O5errakn66KV31/A9bAV8mo0hGkeH+5Qokg4S8y6zDVCYZQ== X-Received: by 2002:a05:6a00:841:: with SMTP id q1mr8267625pfk.21.1643809798495; Wed, 02 Feb 2022 05:49:58 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:78b5:214c:c81:b9aa]) by smtp.gmail.com with ESMTPSA id w19sm27335684pfu.47.2022.02.02.05.49.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Feb 2022 05:49:58 -0800 (PST) From: Chen-Yu Tsai To: Stephen Boyd , Michael Turquette , Matthias Brugger Cc: Chen-Yu Tsai , Chun-Jie Chen , Miles Chen , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 10/31] clk: mediatek: mux: Internalize struct mtk_clk_mux Date: Wed, 2 Feb 2022 21:48:13 +0800 Message-Id: <20220202134834.690675-11-wenst@chromium.org> X-Mailer: git-send-email 2.35.0.rc2.247.g8bbb082509-goog In-Reply-To: <20220202134834.690675-1-wenst@chromium.org> References: <20220202134834.690675-1-wenst@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_054959_339691_9DC31656 X-CRM114-Status: GOOD ( 14.17 ) 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_mux is an implementation detail of the mux 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 Reviewed-by: AngeloGioacchino Del Regno --- drivers/clk/mediatek/clk-mux.c | 8 ++++++++ drivers/clk/mediatek/clk-mux.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/mediatek/clk-mux.c b/drivers/clk/mediatek/clk-mux.c index 6f0c22a699c3..2d4d8dc0120a 100644 --- a/drivers/clk/mediatek/clk-mux.c +++ b/drivers/clk/mediatek/clk-mux.c @@ -13,6 +13,14 @@ #include "clk-mtk.h" #include "clk-mux.h" +struct mtk_clk_mux { + struct clk_hw hw; + struct regmap *regmap; + const struct mtk_mux *data; + spinlock_t *lock; + bool reparent; +}; + static inline struct mtk_clk_mux *to_mtk_clk_mux(struct clk_hw *hw) { return container_of(hw, struct mtk_clk_mux, hw); diff --git a/drivers/clk/mediatek/clk-mux.h b/drivers/clk/mediatek/clk-mux.h index cb2ac4f04c58..38a2b6014b08 100644 --- a/drivers/clk/mediatek/clk-mux.h +++ b/drivers/clk/mediatek/clk-mux.h @@ -9,14 +9,6 @@ #include -struct mtk_clk_mux { - struct clk_hw hw; - struct regmap *regmap; - const struct mtk_mux *data; - spinlock_t *lock; - bool reparent; -}; - struct mtk_mux { int id; const char *name;