From nobody Thu Nov 14 10:28:44 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9335C433EF for ; Sat, 22 Jan 2022 09:18:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234019AbiAVJSc (ORCPT ); Sat, 22 Jan 2022 04:18:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234079AbiAVJSH (ORCPT ); Sat, 22 Jan 2022 04:18:07 -0500 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B710C061744 for ; Sat, 22 Jan 2022 01:18:07 -0800 (PST) Received: by mail-pf1-x435.google.com with SMTP id u10so6521798pfg.10 for ; Sat, 22 Jan 2022 01:18:07 -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=14oekTz2jUCC4Rr83R46NSrxudxWdrVi94PXUiSTUWo=; b=GeAKiZ2qXHpjbTDaTxRsRAPhrwtnHAA+bWWAfvB5SGpNEdh8lhBHUGNYuoupKevK1T Y1DokCz7jgKK/gFoPLRlk56KWjfEhKayjq8b46VW1cPzJgdVxvR88PhQMdqcXmxMrtYG msQvy9arKcOZ9bj1HBHL7oTz0Q0jt8ncHRvoM= 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=14oekTz2jUCC4Rr83R46NSrxudxWdrVi94PXUiSTUWo=; b=GqDymcnf/euk/G8wPZdd9Txp/1sG6njC4Li0J2YB+8jiMuGcSpFZ/KZ4wdiLHQL3M2 ehAFGyBIrVn3fTISdwtB4zHeo3zpraOAN5FiJI3ddq7hbbjyGdkGNGi5gy+67IUeC1+W 0LtHgMKIiJfcZx+jQOz3UvuaKNTUsbGT/Cjx+hS3yxdYOj+vUnkyOUcHN1eBilIF/PEx a7EvPBwxMIz/TpjntTK/He0yzhABJ0e+uw5e74lo6s3vYHWrd2kgCrxq/TL2lcT/j2B0 /kkDaAjy+wiJF+ilM8Yr99NKHkkQGiULJZusY7nck8HbZ93v8IVb+QgnK6/6OK/WBT7R p/Wg== X-Gm-Message-State: AOAM532BW56AQ8dOuqAuXGAs9jejKixpmIbvzjTZ568iIwePGawb++Gc t5CH4XssIPxTDfcHsQAKZblbtw== X-Google-Smtp-Source: ABdhPJxBLmizlDghIjkDDcRjYFNdvmbFT8l691jjnPT3Ies6TSVELhgwbCd9IWZYQ6kTQCL8f7D04Q== X-Received: by 2002:a63:6905:: with SMTP id e5mr5462412pgc.543.1642843086828; Sat, 22 Jan 2022 01:18:06 -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.18.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jan 2022 01:18:06 -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 10/31] clk: mediatek: mux: Internalize struct mtk_clk_mux Date: Sat, 22 Jan 2022 17:17:10 +0800 Message-Id: <20220122091731.283592-11-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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- 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" =20 +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 @@ =20 #include =20 -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; --=20 2.35.0.rc0.227.g00780c9af4-goog