Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2506829pxb; Sun, 23 Jan 2022 06:56:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxW6kw7RDZjAf2B2h3kLomuHGo6leHVbkEcLp9WF2JUjdlK181KJ1bYzeJM/XkXVZu93WhV X-Received: by 2002:a17:90b:4a48:: with SMTP id lb8mr9166066pjb.54.1642949764358; Sun, 23 Jan 2022 06:56:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642949764; cv=none; d=google.com; s=arc-20160816; b=TyJhthMEcsSXLIfkON1o2JCJ5ZosIXYOSKgQg5I2kSIk9vfacJ2Wuo9csnGP8w0P96 tVI9bjWQYy4RSaG1WxM6iMwbEGavtR7uq3IVy3j2HHFh91c0T3+Zkv1wd+MHaALfq0CB EeGc4vJnQexngoeMRJoUYW8TD3jEYceyWn+Zlcaqw7ofWgLyaHnxXGiH/uokHrusplKL jriBA2ecgF8NXYvbABX47Vq8TA9fVHmxpUU92E9U29ia5AT5FFDOA+ZDjzA7gjLcJS50 1cL9AcgWatqSIfXWOCmZaCyzFfFrGTukX3lSlFPzNHFDXGB+NaMmDlZBgobFFRLWOLCF jU3Q== 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=14oekTz2jUCC4Rr83R46NSrxudxWdrVi94PXUiSTUWo=; b=yazTdA7PvrZ/21JluP9bMEX9ihnGm9GIKOFcIW4nHJDmFVjrCVjfYSYnNuzTgptSwW SRDdYVhArWRPCQM7rNkqxXtENubOdFBcpJLPME/VdOqov8n9lita7croZlGUXYwfEZbr uSZrLHJ1Qr35rioMBnal/fzZaMiN+libid2smh/fBfHFIB5VNjt6TRta0dTusl4O1TVG IoMLX7LK5+t7nrW2P2JYCSzejqSYhvIyltYuUamGJpkmmg9UNfzs9Q8VYUmwt39DM9cP Ilmj8q1wYTF63apPE7sW+jgtn80DFx0vTjhkSl7PG4MlhylMGUPDtYuembWUZDSQ5Mzo mU1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GeAKiZ2q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si12616661plh.16.2022.01.23.06.55.52; Sun, 23 Jan 2022 06:56:04 -0800 (PST) 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; dkim=pass header.i=@chromium.org header.s=google header.b=GeAKiZ2q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234000AbiAVJSc (ORCPT + 99 others); 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-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: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- 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; -- 2.35.0.rc0.227.g00780c9af4-goog