From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 228BFC433F5 for ; Wed, 2 Feb 2022 13:57:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0d/NTyT+YTQ8zV8T6EzxQ1p1oy+P+/1xb0kRAWGtQ7k=; b=CXdaIpLr9BZS0f GMBbj9VwXsEYH1z4cQ6K3bwJSSNEo+wml04WUOShVhxw8EYl+6b3IqStZtpUm4uQxeyPb0K0Tv+SC ehuGGZ9gaYFVyKZi8lFyksNYuLqn+XT5EzqQrCnlCe4ZY9lynPn2UCaUO+8PpJFAO332oFNirb5RG nbzLhaRW0odkxqbCXkr+rnoMSno9PNtiv1QsV6Ge0vAxZJAjH8FnMNF5+aa3IBWSL3CoWvjK68DzJ Z0/lqbK3t81zNUfNhlUzIyfqKyTLw5iMOaGvPkzu4CyNRXjUXJCn8Ju46zfEQy0f96CKji2PV9poH 7bTrTsLIXn33ZU7LNM/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFG6e-00FSRe-GI; Wed, 02 Feb 2022 13:55:33 +0000 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFG1J-00FP5D-AR for linux-arm-kernel@lists.infradead.org; Wed, 02 Feb 2022 13:50:02 +0000 Received: by mail-pg1-x536.google.com with SMTP id f8so18345450pgf.8 for ; Wed, 02 Feb 2022 05:50:00 -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=atVL6xJF/54HJ2aWxtM+9tGv7OBG0H7yvFIiBDi452k=; b=KokZ29ZgNuAl3t+XgjfUEk3Bpr7iTEs+HxAkSQTAjFt8MtVd92B7EM//xJfeoxHFcG CURs15ExfQ68RVYPKdkpcVHsJ21gFZHbfjRcl6tSu5KwHMu7ghFUrJxeLlmkYGyzqhJY eJSDBxTcm6jX8Ys5/RBbe5fsYH5hpW/v1bP7Q= 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=atVL6xJF/54HJ2aWxtM+9tGv7OBG0H7yvFIiBDi452k=; b=i1ZocPv2XKhSOGKXMmGLQvKh4JvUjcnAlwQ9wx/RjzZPWPC7h8/p6Mc//J/OA7hpwS n6OBKORuMdc9GqyjE4IZoKy5ECIHOqcqwQXWjzw2IvNAyAMuBIeM3vutSwHm2uv2+/Zo ytKs+I/7Nh+qYOioCLGUdkoqkNQDAwTYRkcQ3GZ1vsx0x/U41OSe3ay1xvPSsYUU7etR tKoZKmKk/Z7UlUSMnxlvI7EhhyXfcTRpbdS6kQzJEvnMTOdNyT/uWmRpjnoRml5/ZLuU biQy0RQ+9vbbUr06KxKdWRd3cSBqQ5LwOG9NONoe5jrVwUseU1NS/XiUxaDizpicIQhO a/dA== X-Gm-Message-State: AOAM531SlntG02SWgr2fcpgK9jjQSXsaFN3oRU+dcU4InP/WzmV2k9vH u2W697gvp+NLNyaL8CrmaIg8xDwfUNrd5Q== X-Google-Smtp-Source: ABdhPJwJNNtXsmuuzMgKjlUyJSyJMix5Mr8FLafmoEYLOBjBKCisUB5Vl/24ORK+SOxnDNq5ZWil8A== X-Received: by 2002:a05:6a00:15d5:: with SMTP id o21mr3872002pfu.9.1643809800457; Wed, 02 Feb 2022 05:50:00 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:78b5:214c:c81:b9aa]) by smtp.gmail.com with ESMTPSA id w19sm27335684pfu.47.2022.02.02.05.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Feb 2022 05:50:00 -0800 (PST) From: Chen-Yu Tsai To: Stephen Boyd , Michael Turquette , Matthias Brugger Cc: Chen-Yu Tsai , Chun-Jie Chen , Miles Chen , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 11/31] clk: mediatek: mux: Clean up included headers Date: Wed, 2 Feb 2022 21:48:14 +0800 Message-Id: <20220202134834.690675-12-wenst@chromium.org> X-Mailer: git-send-email 2.35.0.rc2.247.g8bbb082509-goog In-Reply-To: <20220202134834.690675-1-wenst@chromium.org> References: <20220202134834.690675-1-wenst@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220202_055001_399220_25B783C4 X-CRM114-Status: GOOD ( 12.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 Reviewed-by: Miles Chen --- drivers/clk/mediatek/clk-mux.c | 11 +++++++---- drivers/clk/mediatek/clk-mux.h | 8 +++++++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers/clk/mediatek/clk-mux.c b/drivers/clk/mediatek/clk-mux.c index 2d4d8dc0120a..01af6a52711a 100644 --- a/drivers/clk/mediatek/clk-mux.c +++ b/drivers/clk/mediatek/clk-mux.c @@ -4,13 +4,16 @@ * Author: Owen Chen */ -#include -#include -#include +#include +#include +#include +#include #include #include +#include +#include +#include -#include "clk-mtk.h" #include "clk-mux.h" struct mtk_clk_mux { diff --git a/drivers/clk/mediatek/clk-mux.h b/drivers/clk/mediatek/clk-mux.h index 38a2b6014b08..903a3c937959 100644 --- a/drivers/clk/mediatek/clk-mux.h +++ b/drivers/clk/mediatek/clk-mux.h @@ -7,7 +7,13 @@ #ifndef __DRV_CLK_MTK_MUX_H #define __DRV_CLK_MTK_MUX_H -#include +#include +#include + +struct clk; +struct clk_onecell_data; +struct clk_ops; +struct device_node; struct mtk_mux { int id; -- 2.35.0.rc2.247.g8bbb082509-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel