Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4767031pxb; Tue, 25 Jan 2022 19:01:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyavexcKBYp0Rx6zyUUb78Ap3YOLlay2qeKdU9chb9sGGel4tT3dZttXR7+QsTfuC87ayVv X-Received: by 2002:a17:907:7253:: with SMTP id ds19mr6366754ejc.187.1643166098458; Tue, 25 Jan 2022 19:01:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643166098; cv=none; d=google.com; s=arc-20160816; b=m8xPdbF/HelRF8+BRZeIQEIlfq+0GK53xQyGi0QhAwAD4DnkdE4SzrZsCfAWbrpaVs IPyv59srdZWicZIvFmhV5KdYKpJzenYxYOE6JWZBCY29ZXWAdvXNVC5BfnzSDr5M0Vjq fOYGxf3pnRs//X9SJ14/xGui1oye+1JN+0iw5g2NYBBxl6ryQOyf1qWAE3ugT0fN/w4y Nw5KA7WrWqdpCGaSzCDaVFDckazgik/N5EKHwYAEQN5A7M3zSBxt73ujeneJZVAKVgqU +/xLa7DIdvr8QgFLLpaZlphH9P3u4tWxaO02TSCHIHqm21KSfVV7yedzQ6idGjFpaJqd 6wFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=uPxiFn2MJ7CVOprBFr3PMf8wpMlKU3yZWyjjhyEU+yg=; b=R3l9Iz9bGSVWpOSMQ5tEpcNPja9pODx7zW2+Iw2+RHvFbHZ8mdo49QnnSOGD7C+TSj rgWXou63L1kxcLbtlX4OSGuIjh6y2berdAozVi7fxfKsX5adBiVGar4YoLAT8rXizfE4 8nqd8Uw87W1lQX5gMGupMiz8gJ2BzwIhhaZeiq7bVUpfvYvs9GQrqw6A9rS6QVlAXkmc ibzfdXz5WpGOXNvm276oStwAqpWBbZjjKTMBxjjbx3AAeuPXRGEzWqn0s9jmRtbhBcJ0 Rt3B2csc/4IbFKm7oAZ4h8X679EeXheuZajIL2tfxWCv9KyFF/IDNPaDTD0zbL0mbHiR PBdQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si13526041ede.435.2022.01.25.19.01.14; Tue, 25 Jan 2022 19:01:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381590AbiAYRZn (ORCPT + 99 others); Tue, 25 Jan 2022 12:25:43 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:54282 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1588141AbiAYRXE (ORCPT ); Tue, 25 Jan 2022 12:23:04 -0500 X-UUID: 4c06a835d9d14ecfb5cacbb2e45661db-20220126 X-UUID: 4c06a835d9d14ecfb5cacbb2e45661db-20220126 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 963116520; Wed, 26 Jan 2022 01:22:59 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Wed, 26 Jan 2022 01:22:58 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 Jan 2022 01:22:58 +0800 From: Miles Chen To: CC: , , , , , , , Subject: Re: [PATCH 10/31] clk: mediatek: mux: Internalize struct mtk_clk_mux Date: Wed, 26 Jan 2022 01:22:58 +0800 Message-ID: <20220125172258.5469-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220122091731.283592-11-wenst@chromium.org> References: <20220122091731.283592-11-wenst@chromium.org> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N 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 > Reviewed-by: Miles Chen > --- > 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