Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2507488pxb; Sun, 23 Jan 2022 06:57:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmMkB3BO9/3vE+sJ3ht4udynvkNgjj1hPtbxkXwvz+NClyrKKZIFy8ZUbAzkD/jMVsgWb4 X-Received: by 2002:a17:902:9887:b0:14a:199:bc51 with SMTP id s7-20020a170902988700b0014a0199bc51mr11097799plp.39.1642949851946; Sun, 23 Jan 2022 06:57:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642949851; cv=none; d=google.com; s=arc-20160816; b=nztcFF99Yyy9fUfMUl+dsdpvAxWCuMHzllaa+P00ScxvM55xovRj2AhooNbyKCaWJL 8Dk+kLN1Zp3rdW+jKngIdjBGuL2Pzmm7uEf4S8dPsvGCwQSM+TC2z/ndLbL1x5IJhN5m HFKka+1TZLF3ykWntAB6B0bddJfp0xQroiyod7xkoU3WMkMhJpC6FUVb0r+KNGE9q03c m96+xfjzblxCX+hH3wqFnjsmodLREPMwwgtIIew70SzSBpwilpsKa+IA2WsdOwhs4F48 d7qkradFAk5x48gRZBMhzpZTUIfGjhW4V9wdqkPF4FgNEb3OqzXPQRlGajo5qTxEf8i0 aA4A== 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=y7ikYR2DO0KTQJWDZKewH0oM7Rmj3LYjnAGwR2+oJK8=; b=ydlc0p/SeY9Y8Y8ZaJ6v1dizM5uHIf/yqR3MEggDuDbuwnQAW8LZDSzPGDtjHAc67R WdT4u612GIF5XsS06CsV/OleV9w+3nBZ/CXGfb69LM5Txr48+VtiRt+Z+NSFZQ8TzPS7 AtRbqTmhvDeG50w5/8sPZCjezyUdP3tenEhmqPSoXjd6vbbo1/PC6X1QYXKDfz6bAACO 0H4gwlQ1ZeR+vNjRMvw4t7pICUccTku/YupBQmItFan1g0OMO3sC/9z6SX7sJr7okhdZ vEQjBcnS0zXRIoWXCwHYjOxbnb9ol5K/iMOhDoqQoaDNinyobRGBVacpYcu5zh3wrX6q /m9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MK5yUJ0Q; 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 f6si10608864pgp.709.2022.01.23.06.57.20; Sun, 23 Jan 2022 06:57:31 -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=MK5yUJ0Q; 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 S234394AbiAVJTY (ORCPT + 99 others); Sat, 22 Jan 2022 04:19:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234233AbiAVJSl (ORCPT ); Sat, 22 Jan 2022 04:18:41 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C774C061763 for ; Sat, 22 Jan 2022 01:18:29 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id x37so7096055pfh.8 for ; Sat, 22 Jan 2022 01:18:29 -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=y7ikYR2DO0KTQJWDZKewH0oM7Rmj3LYjnAGwR2+oJK8=; b=MK5yUJ0QuCGEKf3Fc/Pxxv6kVp2sCxxGWLo2+2smGGBR2K/o7OHOjjJgu2n+G57HdW eAjYKu6r69okMTLnUNRSORWTYe+o4pIcmJH6zpYeOFj361NZkjOI+OknPUS5cKY/PrsO D/j75AnvdU5gV234xvjW9KODPrnuFljn+y8n8= 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=y7ikYR2DO0KTQJWDZKewH0oM7Rmj3LYjnAGwR2+oJK8=; b=JhVK8pP9Vuu/PPmKIkdXZUz6iueQJ5eNZVSR+TjHGAiNOjPYkedQSnUm2D0Ju7KuTU k2VhqW+eWscdCXEfmk8zdb7MQotT7pM6lb2KzTuoo8dWo1cB+NaIYEcoa6IOnkHIXLHp j5sUvxHh4bZBtQolOc1Q8iARk+nygboTySxc4iof7XMwqzFvjt1E21cY31daawSp11mW eXtC15NsUdrOLBbq8j8Vzm/scQXz5pdZHRI/LV9xkClh/r78NL5OQIlArCrVMczpByFC mDWouyp+bNs73d225b2SC+L5B2E7WxPJm3ose4TXfxalfqnPUjG3xf48IsmQbvZD7mQ+ pO+w== X-Gm-Message-State: AOAM532rVKXDbtg7TqegNVXCeMMgQ2Vp0lHrD0dBjGrUxxO879RJlLZY G3aQBmja+2v4TMFJyGne8T8K+A== X-Received: by 2002:a63:b204:: with SMTP id x4mr5614276pge.224.1642843109114; Sat, 22 Jan 2022 01:18:29 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Jan 2022 01:18:28 -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 20/31] clk: mediatek: mtk: Clean up included headers Date: Sat, 22 Jan 2022 17:17:20 +0800 Message-Id: <20220122091731.283592-21-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-mtk.c | 13 ++++++------- drivers/clk/mediatek/clk-mtk.h | 12 ++++++------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index cd76e1d80242..d2c50186cceb 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -4,17 +4,16 @@ * Author: James Liao */ -#include -#include +#include +#include #include #include -#include -#include -#include -#include #include -#include +#include +#include #include +#include +#include #include "clk-mtk.h" #include "clk-gate.h" diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h index 4fa658f5d934..7f902581a115 100644 --- a/drivers/clk/mediatek/clk-mtk.h +++ b/drivers/clk/mediatek/clk-mtk.h @@ -7,19 +7,19 @@ #ifndef __DRV_CLK_MTK_H #define __DRV_CLK_MTK_H -#include -#include #include -#include - -struct clk; -struct clk_onecell_data; +#include +#include +#include +#include #define MAX_MUX_GATE_BIT 31 #define INVALID_MUX_GATE_BIT (MAX_MUX_GATE_BIT + 1) #define MHZ (1000 * 1000) +struct platform_device; + struct mtk_fixed_clk { int id; const char *name; -- 2.35.0.rc0.227.g00780c9af4-goog