Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11830774rwl; Tue, 3 Jan 2023 05:28:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXs8ZdbUua3DwRUJwUJiMwde+6xnxmq00Q6U+icUv6URaS7PkslzvnxzL7o4dUBZCNlohxzH X-Received: by 2002:a17:902:da83:b0:189:8425:730d with SMTP id j3-20020a170902da8300b001898425730dmr66372570plx.27.1672752538858; Tue, 03 Jan 2023 05:28:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672752538; cv=none; d=google.com; s=arc-20160816; b=Je0uBCWXAQ/l8TZz7vlxfrrs5DP3tl++Du8VbAVk21VG6RtDZEsfBK2wd3wcgUTF63 mSWekd3hxZLOCr2flPB5FxHvSlJLReKdW5kSIB6LjayyoewTPRWanL7xLGxiqUX+P4tl zzutdY0AWbctaMoNfj5VMYGrMJxO6tFyEnVBRToVeaMD5jSlkbiISp/LAPyksa+gdTOG 7nWhfiyK0NflQlYdk7kgGEZuzCzd04xEgWeoaWo9qNj4wLqsB9pkUN8V+9/88ieYYwoZ tnNGsKA8v79IjxaxMRoN/66VC6v0Skn0g7YnxKb/LGRtUbXvGKqfh+Id4njfK+CKx3qD EE8w== 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=D5tHmAq8XEUna0E5RSbSOZ4xapHQ0h6yyTb36gWfi4Y=; b=V0PzxHeJBGbNIpir5iP2Zbfd/dcnhllCPVaqE52xMNJ9KJcmDVLdWG2jr7Lae4HgK/ s1bUz9xLmIEJbXQjDo8Y1kZyBOupjkwSVvKrZqMPVqT/ORAEfMUGembrDe13K8R9+SJ8 XLQZM08oP3rFBy0E0JAj4axC7YrvfR85MgPrIKY1HNqIldwFaKFxt9J+/SfDO2giMrey 155zGvqsWxs5DyLIYcUPPS9OlubH564+Cj695a32GKSqfR8yjENJZNQWbS0z8WuMip9I w6ydxtsbvNOwO8yUzn6SEKuBJ3TwwT9KJ+Dk/eZS814pId/0ph3qRXxOlJGRzdgriVtN pWxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=And5CoS5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a170902bb8500b0018c35376fdcsi30003472pls.78.2023.01.03.05.28.51; Tue, 03 Jan 2023 05:28:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=And5CoS5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237327AbjACNMu (ORCPT + 60 others); Tue, 3 Jan 2023 08:12:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237662AbjACNMh (ORCPT ); Tue, 3 Jan 2023 08:12:37 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10429FD3E; Tue, 3 Jan 2023 05:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672751557; x=1704287557; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=b85nclneF9BX61RtcZxdbpTMJV7DSQfjZ+m4p4X2wC0=; b=And5CoS5AYO+F1LcLzpVB1+b6JPQ9qKguZD102C7kdEMHGTNk3g+RmKh 34ZrnkRi88Dw+qBYXi5TfADU44h4cmT/ySKDxRVdAU/miISoamFS+STkU mgRqfUBOu3M5BI8OUcE4EStmS64hhaiEWyPslf5ZKJ4kQudQvUEq9j028 UCRGVPVlfzgJOGjA6tMkbKYRgNwnaPUAtLVb3FXxWFjF3mQPtQVvk5SE4 yfp0gS9lnbi0tRIFvtuOMqn1xk9u/1f8Duea5tLWY+Pg9p2UMGc8vElAY fnTdTY61mKMyA3c2B9YrZ8nl3PFZaYRE8LASk86VLN7FgADN2G0eX31jr A==; X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="322887924" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="322887924" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 05:12:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="685397926" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="685397926" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga008.jf.intel.com with ESMTP; 03 Jan 2023 05:12:28 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 79000F4; Tue, 3 Jan 2023 15:13:00 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Gene Chen , linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Pavel Machek , Lee Jones , Matthias Brugger , Sean Wang , Kurt Kanzenbach , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: [PATCH v4 01/11] leds: add missing includes and forward declarations in leds.h Date: Tue, 3 Jan 2023 15:12:46 +0200 Message-Id: <20230103131256.33894-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230103131256.33894-1-andriy.shevchenko@linux.intel.com> References: <20230103131256.33894-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing includes and forward declarations to leds.h. While at it, replace headers by forward declarations and vise versa. Signed-off-by: Andy Shevchenko --- include/linux/leds.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/linux/leds.h b/include/linux/leds.h index ba4861ec73d3..499aea1e59b9 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -10,17 +10,21 @@ #include #include -#include -#include #include #include #include #include +#include #include -struct device; -struct led_pattern; +struct attribute_group; struct device_node; +struct fwnode_handle; +struct gpio_desc; +struct kernfs_node; +struct led_pattern; +struct platform_device; + /* * LED Core */ @@ -508,7 +512,6 @@ struct led_properties { const char *label; }; -struct gpio_desc; typedef int (*gpio_blink_set_t)(struct gpio_desc *desc, int state, unsigned long *delay_on, unsigned long *delay_off); -- 2.35.1