Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2506673pxb; Sun, 23 Jan 2022 06:55:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+h4JzadPQUBN4Z6XgOjxDMpsDmnQ6pw0wKIxK8iInkVh2QZqWroX7c92Yk6Gk9ftR/DL9 X-Received: by 2002:a17:90b:3a8e:: with SMTP id om14mr4929458pjb.32.1642949738579; Sun, 23 Jan 2022 06:55:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642949738; cv=none; d=google.com; s=arc-20160816; b=MFcnra7MjWoXARVFAOWxyNgKuveFuCrlUXcCvQEfNVZsDF2DbtGuB+sLg++y2kgI5e grL/OMZ++04T7tXnPZ4OJDmtIpszzhX/FvLsgdvuqS6Kyf/5CH2pjaGVWfsEfrMaiv8l +ZXSz7NvR3A0GvO9IONWHWFESYfGPydHgP9eJ/XoMxPLNK4lBoFeB5uK8gVAo/IdJD/K YlUtBDCDHpK0C0lKAcLE2y+s0SZ64qTTld+K79Kr+ZSsRGjB6ojn4Gw7CDNcRFekG9Cx /NGq3ZknlkU23zWYkFr1cOYPL8zB30I5aMBYIcRKyX/QHOSW4QNfVz6UOeGUynVxSIzW xMUA== 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=kbKt7ttJEIbn2PG8GXADqtWmeHu+9XOdvvWCDvq3ah8=; b=Vrc2STuYd3/iZnhotzPHLmJ3ACh2PbTsHTPTjXpu0lYYiubAEnzTtF9r0IhvIaANFr kJ9aIBHQOVnwptxhrFisjPIwP3m3oQFo1Fdm0H/NKDUrde1n1hr5sAT7ftdWEfIsRna7 6X0bRMOfrmv1O/GJOslISbfzOSD6jgEJdVxgrXPXzkSPkg3mtWP17h7UwimVVOy9P709 VBfqkM5BjCP4Lf2Nhhlqk9cI8PA6ouM84VTRp87cOs4seK+dFKZnpoxrctr/ppg5COpT e7o8HHJKOGyUSm366rpdbdrrhV+2VvzKEW3VtDgiOfKMaqAMXUNNdF0A68R6nL66be8m LdTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HNsD0ReK; 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 v2si10908976plp.620.2022.01.23.06.55.26; Sun, 23 Jan 2022 06:55: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; dkim=pass header.i=@chromium.org header.s=google header.b=HNsD0ReK; 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 S234089AbiAVJSI (ORCPT + 99 others); Sat, 22 Jan 2022 04:18:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233997AbiAVJR4 (ORCPT ); Sat, 22 Jan 2022 04:17:56 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3600EC06173D for ; Sat, 22 Jan 2022 01:17:56 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id s61-20020a17090a69c300b001b4d0427ea2so15446290pjj.4 for ; Sat, 22 Jan 2022 01:17:56 -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=kbKt7ttJEIbn2PG8GXADqtWmeHu+9XOdvvWCDvq3ah8=; b=HNsD0ReKRNDG4ZtQO0GD+qXHMUslr6wilW+RBb24z8L0AosEtrU+AKZV6wZk1k2g5d UDAFJ5iY2XaAbthYJ2P8V+dhnsYtH7/gnu5QJ65OVnxpI1rg7GoU2RG4CPdtmgyNecYK NgI9nutHRuVY/OYbPkUE6pQDesSxO+GaEEcRo= 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=kbKt7ttJEIbn2PG8GXADqtWmeHu+9XOdvvWCDvq3ah8=; b=UCJ04wkoCw5/hmBpoka5du2fcGhogEmkHPLlWutYMzq5/ioLc01nySf0De59jbTUD4 fJ2aHk1NBdQIaq4UBdpLo5SSeN1sB/6WOLHi1LhoRb+taCH3jhtmOHrx+p9tKrClCAT5 88Qv66MnsrmvozPsp6lmcCx0kckSpr364tDv7WgWI6wHQJp52O+syK5Bt6KAvFfmQbUv U+fw4kyTvVJpoz1hJHsiqeE35V8SgkAe8WguybZMp1SylW0RWSRnIqOJPk4bvi0M+3Uj 6F3ViYx+3eDqoEMuQaGcCkcCszCHIAx9Tw0xziFa7SFCl3dyJffN3JsoRI36E07BY1Wf Oxcw== X-Gm-Message-State: AOAM531lYCdJa4wAtnr8FI7xrfBLJ1wTO5X/jdhys6aVmiudju217kLa 1dfLXz4+SQZXd5OpjfsD/QXY5uLN2EKQgA== X-Received: by 2002:a17:903:110c:b0:149:9004:4e7c with SMTP id n12-20020a170903110c00b0014990044e7cmr6902111plh.167.1642843075780; Sat, 22 Jan 2022 01:17:55 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jan 2022 01:17:55 -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 05/31] clk: mediatek: gate: Clean up included headers Date: Sat, 22 Jan 2022 17:17:05 +0800 Message-Id: <20220122091731.283592-6-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 Some included headers aren't actually used anywhere, while other headers with the declaration of functions and structures aren't directly included. Get rid of the unused ones, and add the ones that should be included directly. On the header side, replace headers that are included purely for data structure definitions with forward declarations. This decreases the amount of preprocessing and compilation effort required for each inclusion. Signed-off-by: Chen-Yu Tsai --- drivers/clk/mediatek/clk-gate.c | 11 +++-------- drivers/clk/mediatek/clk-gate.h | 10 +++++++--- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/clk/mediatek/clk-gate.c b/drivers/clk/mediatek/clk-gate.c index ed1ad5535d41..e8881ae1489a 100644 --- a/drivers/clk/mediatek/clk-gate.c +++ b/drivers/clk/mediatek/clk-gate.c @@ -4,18 +4,13 @@ * Author: James Liao */ -#include -#include - -#include -#include -#include -#include #include -#include #include #include +#include #include +#include +#include #include "clk-gate.h" diff --git a/drivers/clk/mediatek/clk-gate.h b/drivers/clk/mediatek/clk-gate.h index 344adffb6578..6b5738826a22 100644 --- a/drivers/clk/mediatek/clk-gate.h +++ b/drivers/clk/mediatek/clk-gate.h @@ -7,9 +7,13 @@ #ifndef __DRV_CLK_GATE_H #define __DRV_CLK_GATE_H -#include -#include -#include +#include + +struct clk; +struct clk_onecell_data; +struct clk_ops; +struct device; +struct device_node; extern const struct clk_ops mtk_clk_gate_ops_setclr; extern const struct clk_ops mtk_clk_gate_ops_setclr_inv; -- 2.35.0.rc0.227.g00780c9af4-goog