Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4097871rwr; Sat, 29 Apr 2023 23:38:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5uA8TQyzK0ozFw87M7E+fF8flpvAgsGcjXeZBpaFb5X+unr7LDbLTftfVSO31zIZKixtQk X-Received: by 2002:a17:902:d4c5:b0:1a9:6467:aa8d with SMTP id o5-20020a170902d4c500b001a96467aa8dmr12698658plg.1.1682836734261; Sat, 29 Apr 2023 23:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682836734; cv=none; d=google.com; s=arc-20160816; b=FhA14XoArYHGxhDYsz3YGcyV7eOERw0/LZn3lFKjNKbnRE3JdyTH2ZL+Km8keBLkMk 22Jdw8f4xAVaAyWNZACivgTDMg0UJU9haX4eSU13a6jYjT9ADHvThW1RWxhYbFWbS4dh lZoXuY4wCPi2JBx11oW58A/CvrRUrVZraW1YpYIXrUmTRzUA2QQ2tar7I5PX2bXuq0ft RfTokVmSLG/oao2+p8EybcTaJ1zKFHy+R/QYOP12MhRS7RTDM5oWGYry21LUZI2tM5rO Z7JLCMqCWQrfnJy+Pggc7xQb+C7EID2XqDDkCNRLJn3vxIRB4HPhMjYuyhKSYpVF4Ge5 3K+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:dkim-signature:from; bh=5L9ODeAwGxEQSJvBsGK1sQa4hsLLCUjmZMYtu9dmg40=; b=IRoztk3Vsc6/xWdx6pMt+ef472sV2fQdl9XJufvlxSvIBPewsNvm3Xx2BMuoifDYgH Oo0kFodAR+0gQxvzAnTdR1GNvMdw25l/TZcGjr2mbqWGxLjUgjlMLmEC5QWvrGAWt9ea 3Lewgfvhb/t8RR3EBDdq3N3+6BgqKBaZYvEy2udU0XheK03YW9CkqeyXna5HGZmH1cO+ CVdZk+w+Rr+y2981qVSKh7Rop9/LV8Y9D62kmswPWy0tCtUG/qBOL4COn5OOQSnadBO9 4z2hbozvG0YZI0t+C1i6UA+SU45U41o+1iqjKpr2aVPdalq5fXQCIS69f81iop9qCVGr +76A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=MDhUIn1e; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s23-20020a632c17000000b0051b32aa267asi25920407pgs.671.2023.04.29.23.38.40; Sat, 29 Apr 2023 23:38:54 -0700 (PDT) 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=@weissschuh.net header.s=mail header.b=MDhUIn1e; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231731AbjD3GMC (ORCPT + 99 others); Sun, 30 Apr 2023 02:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbjD3GMB (ORCPT ); Sun, 30 Apr 2023 02:12:01 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EAA619A6; Sat, 29 Apr 2023 23:11:58 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1682835116; bh=EWND/P5khW/j9msjU3H9jrXagHPGsVQxvQ8akYP7ayI=; h=From:Date:Subject:To:Cc:From; b=MDhUIn1eWSNUftjkq02ZdQnnr27CEXFpWLMoCamhu5s9gj4Rb2BrvD0scQ1Uxv+j2 zTxxoYM4t9LPB42i06M/zj4Z+KyuwmhqpBSKOOgdVOtIP0vclFHSsjGoY3WHRQ5JEW BP99PbBBXOUrg4wlP70IDqvancS1KtiBqPDtfLgc= Date: Sun, 30 Apr 2023 08:11:53 +0200 Subject: [PATCH] power: supply: remove unneeded include of linux/leds.h MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230212-include-power_supply-leds-v1-1-7adbf7424002@weissschuh.net> X-B4-Tracking: v=1; b=H4sIAKgGTmQC/x2NSwrDMAwFrxK0riB2F4ZepZTij9IIhGMk3KaE3 L2my3kwbw4wUiaD23SA0puNtzrAXSbIa6wvQi6Dwc/+OnvnkWuWXgjb9iF9Wm9NvihUDBdyJbg cUkgehp+iESaNNa/joXaRMTalhfd/8P44zx8hMs9XgAAAAA== To: Sebastian Reichel Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1682835115; l=1310; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=EWND/P5khW/j9msjU3H9jrXagHPGsVQxvQ8akYP7ayI=; b=VH/gXETeC6s11ytN6rvcKxK5qUEpEwcKdrw+devE/9e8YR+2NwkaqZLZxjmaWx8YafYa1V7JC 9eHbD20/9UZBVnRBmQoNW7ds5Kgzeps5nlOXpBJq8tJMgJ8DAV2bjNp X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Instead of including the full linux/leds.h header file a single forward-declaration is enough. Signed-off-by: Thomas Weißschuh --- Currently power_supply.h includes leds.h to get access to struct led_trigger. This propagates the inclusion unnecessarily to all users of power_supply.h. Replace this inclusion by a single forward declaration. --- To: Sebastian Reichel Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/linux/power_supply.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index a427f13c757f..dc5e17e8c919 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -14,10 +14,11 @@ #include #include -#include #include #include +struct led_trigger; + /* * All voltages, currents, charges, energies, time and temperatures in uV, * µA, µAh, µWh, seconds and tenths of degree Celsius unless otherwise --- base-commit: 825a0714d2b3883d4f8ff64f6933fb73ee3f1834 change-id: 20230212-include-power_supply-leds-fe1d71c7b7b2 Best regards, -- Thomas Weißschuh