Message ID | 20230212-include-power_supply-leds-v2-2-e9910a3f5837@weissschuh.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp357224vqo; Mon, 1 May 2023 21:45:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4dVswLfw9POgeIkYQF2nCjJ9g2xGaJ6fIen2YRNJSaeXrppZCU4RfERyxa7qm0LqYNQ7WV X-Received: by 2002:a17:90a:8c13:b0:246:b038:2f53 with SMTP id a19-20020a17090a8c1300b00246b0382f53mr16912167pjo.24.1683002738978; Mon, 01 May 2023 21:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683002738; cv=none; d=google.com; s=arc-20160816; b=XxHx4egwrXXY5ZwJj0q+15RmllC4OOIzdT9TA3fDW6WF0FRv3QmX+YVE7O+VDi6LzO BlgEoLUHIeqr2cM/D3ZLe3tYkaMjxJsmx9A01jiBmVW1XOotf/31dUZWVsy5TB2mxqwN zLtDw1ID7xdrUTBeBb7dZoZzELPuAgEJf33M8J4bgB6WNu/MDj7AYia1A0qDe1g3SNHV R4JwGTUhS/uBsCFQDun27b4Cliqk4A3H2OZdHo4LfK4UHyvD1736vDD0DL6n9/ECZ5f5 RRtwh2ph8QGwLqXrlGFs83llq8xvFOt7Cw8vsBMoIxiaTLuseNiyESZyU8b8nDppa4Kr wFlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=qUezygGFkkYKK76n2dOmbsr4bTgmwNsZsZr7jd8qw+Y=; b=i35a5M1xoZ/XOh91y5d5y6ovIRpcCrJcVtfz4srlH1GUvS39/z4I0YJgq7TU/aO5di /mW8OLlBMH1yYHGbz8CrrjiPzvnJh8ITBy8MJFU2I7DeoCJYXMveJtcUX5Ts2BZQygEF +kpQjYsOjfVg/g8ljTroggZ4pUl6R4GRA5GqSaBw6SWlbXyfnotmxx0I3vdsg1qQec4G TGBcFYwBUzw0fZLaIZitMl202U09rtL6cNVXb/uu1ZEuAPUZ9YpBrv6cATXeWC0rztIB uPxpgVtjDmaVA/RaUNJKNNiivsCyBW5sqXyFedR4vE/+6iqnDA1BQyfs3ixzUdSzOYCe KVCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=ZLOya9fv; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a170903024700b0019e88376e3csi27578772plh.162.2023.05.01.21.45.19; Mon, 01 May 2023 21:45:38 -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=ZLOya9fv; 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 S233382AbjEBE3B (ORCPT <rfc822;rbbytesnap@gmail.com> + 99 others); Tue, 2 May 2023 00:29:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233235AbjEBE2y (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 2 May 2023 00:28:54 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CABB130E1; Mon, 1 May 2023 21:28:50 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1683001728; bh=FVAGAMsfB/9ZOt6WpZqigpx8Wc9v/TnjxkE0rIT4oYg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZLOya9fvHRuaat03BDMkgYsFnOPbirmWjk4hywCGkEwnCc+RmvVn5ituZmP0zvVFP N2dx9gAXShdTnEXRH51uDOhWsYtAr+a0WUJIf6FbkBddShpdbl4dPgcF5QZwaEwS2T D35k0NlIO9Cf3MC+bP2nsGo5BYOylDE5dovvRtSg= Date: Tue, 02 May 2023 06:28:45 +0200 Subject: [PATCH v2 2/2] 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-v2-2-e9910a3f5837@weissschuh.net> References: <20230212-include-power_supply-leds-v2-0-e9910a3f5837@weissschuh.net> In-Reply-To: <20230212-include-power_supply-leds-v2-0-e9910a3f5837@weissschuh.net> To: Sebastian Reichel <sre@kernel.org>, Jiri Kosina <jikos@kernel.org>, Benjamin Tissoires <benjamin.tissoires@redhat.com> Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1683001727; l=808; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=FVAGAMsfB/9ZOt6WpZqigpx8Wc9v/TnjxkE0rIT4oYg=; b=YqdN6JIcUaOMAjZobPUyAAMZ1rz+dTe5E3M8l8cZttXp67ba/cbVYIoo4CbjtZ/UEfrACldSP veABqKbSV+oD9SL95GIGWtGZtxeAxeSJU7bv4SGpdNle6X6qb5Zfdo5 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764756279981637175?= X-GMAIL-MSGID: =?utf-8?q?1764756279981637175?= |
Series |
power: supply: remove unneeded include of linux/leds.h
|
|
Commit Message
Thomas Weißschuh
May 2, 2023, 4:28 a.m. UTC
Instead of including the full linux/leds.h header file a single
forward-declaration is enough.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
include/linux/power_supply.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
Hi, On Tue, May 02, 2023 at 06:28:45AM +0200, Thomas Weißschuh wrote: > Instead of including the full linux/leds.h header file a single > forward-declaration is enough. > > Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> > --- Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> -- Sebastian > 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 <linux/device.h> > #include <linux/workqueue.h> > -#include <linux/leds.h> > #include <linux/spinlock.h> > #include <linux/notifier.h> > > +struct led_trigger; > + > /* > * All voltages, currents, charges, energies, time and temperatures in uV, > * µA, µAh, µWh, seconds and tenths of degree Celsius unless otherwise > > -- > 2.40.1 >
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 <linux/device.h> #include <linux/workqueue.h> -#include <linux/leds.h> #include <linux/spinlock.h> #include <linux/notifier.h> +struct led_trigger; + /* * All voltages, currents, charges, energies, time and temperatures in uV, * µA, µAh, µWh, seconds and tenths of degree Celsius unless otherwise