Message ID | 20230215-power_supply-leds-nouveau-v1-1-ea93bfa0ba7e@weissschuh.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3293486wrn; Tue, 14 Feb 2023 17:07:56 -0800 (PST) X-Google-Smtp-Source: AK7set/tpDSQKwHNiaMPbigdZCQoB03ocxdTbBB7vb+gLBjtJDuyNsRlfsPq8hcqM5jpGg8diU0q X-Received: by 2002:aa7:c3d3:0:b0:4ac:bd72:e7c5 with SMTP id l19-20020aa7c3d3000000b004acbd72e7c5mr249924edr.20.1676423276804; Tue, 14 Feb 2023 17:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676423276; cv=none; d=google.com; s=arc-20160816; b=OYGuwbf9tx05W/f3WGTAMibDQCJi714x2mRhzlJZCRi7f70KJ9IQjTP0pmv4FEFM8n YAwebD5EltUgT6FgV4AXzkOHjYCZ5TVWSOT8PET2xmafUITRXjIfnIqEGCiO+7GXBLkF m6AFmwR1TbVw9US2ezuD5G6uDTtm/PfGdln1u++p7CRJsRgWn34DYhMoHCEUAciLJuL/ /XSmgXYn2ScYLYlFov3SGLtjlFDsr/ZEwSjfm543A928JofJi9SSdpjqpDeT/TCnVFf9 WyGbbCQDcoa9xlDKDOOnwLmKbrOySTrmrS78MUbWOhnJ9FioNi6fxc+3+9dbOvRuSTBI DmrA== 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=hnbtAMTq8grQi2lyLkIiFzZoD30Jcb0hiB6bvH22U1o=; b=0e6MRIIEb3ILk7XKYgG8tI+3Lb8HhoCoDhrJkyowfaCeJbXg+KB/HXSZHp5XzIhPhp 13NwBRpWSDyy2KP8us0nD3+Y8Swn8g2hj2/wcVwOUxi6c1rw5WV7H0GqfhRVW6WusJSC tG96JIZuXP8XuHElM3KLaJYh5Wx6ClOU72/GX3+0kwcG/dn2/hE7wfGCbCpSXPGPFiyq bIUI+sXUnvvhiwfRQUMziV8PUIUOI4Dn7AOLhNk96ZnC8ZR9JNUkqZJdSjs1X5rXJUsV dV+jJW7rj/cpftpVXvMWut/P4vqU1n/eW0FZe1uFuO36OmtqyS2P5MAUcfeBae+chJEe 2/zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=j6e7xz8e; 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 z14-20020aa7d40e000000b004acb6bcb283si12981033edq.620.2023.02.14.17.07.33; Tue, 14 Feb 2023 17:07:56 -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=fail header.i=@weissschuh.net header.s=mail header.b=j6e7xz8e; 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 S232458AbjBOBFY (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Tue, 14 Feb 2023 20:05:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231656AbjBOBFO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Feb 2023 20:05:14 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04D8531E2C for <linux-kernel@vger.kernel.org>; Tue, 14 Feb 2023 17:04:57 -0800 (PST) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1676423095; bh=hz5rOKe4VQZ+XqCbUIp+iT5/yaFWTSJ1mdEhNn7uads=; h=From:Date:Subject:To:Cc:From; b=j6e7xz8esZrFyyqzp3YqfrorvfVq8/wTJDFHOUD0Suq0QHI4osk4+DahvrTf8p/Z8 W07PTnwHAqI8x41QPYN2jfhbHpY88B28S2uvT/Z5sAJac4AvRY+kMLMqBJFc5yjaT7 fx1mIWrIUaJx1Tz2b/qqf701zgU77z7htmo8lMFI= Date: Wed, 15 Feb 2023 01:04:53 +0000 Subject: [PATCH] drm/nouveau/led: explicitly include linux/leds.h MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230215-power_supply-leds-nouveau-v1-1-ea93bfa0ba7e@weissschuh.net> X-B4-Tracking: v=1; b=H4sIALQv7GMC/x2NUQqDMBAFryL73YUYlZJepRRJdFMDIQlZYivi3 bv0cx7MmxOYaiCGR3dCpT1wyEmgv3WwbDa9CcMqDFrpQel+wpI/VGdupcQDI62MKbedbEPvR2M mZ9XdjCC+s0zoqk3LJg+pxShjqeTD9x98vq7rB/pdBq+AAAAA To: Ben Skeggs <bskeggs@redhat.com>, Karol Herbst <kherbst@redhat.com>, Lyude Paul <lyude@redhat.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1676423093; l=915; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=hz5rOKe4VQZ+XqCbUIp+iT5/yaFWTSJ1mdEhNn7uads=; b=9FEUcn2LW1P/EFojrrV42QmouWuH9qjp5h4UOsPwsruYNHccXUQxgp1tOxCvKWLMsfmArNRdC tKbpEdcdZLmDgi5Dxk5sefW/gNBb0Ed3jLUArnwxhx91ZreOyDHwbc6 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 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?1757857213645831196?= X-GMAIL-MSGID: =?utf-8?q?1757857213645831196?= |
Series |
drm/nouveau/led: explicitly include linux/leds.h
|
|
Commit Message
Thomas Weißschuh
Feb. 15, 2023, 1:04 a.m. UTC
Instead of relying on an accidental, transitive inclusion of linux/leds.h
use it directly.
Also drop the forware definition of struct led_classdev that is now
provided by linux/leds.h.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
drivers/gpu/drm/nouveau/nouveau_led.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
base-commit: e1c04510f521e853019afeca2a5991a5ef8d6a5b
change-id: 20230215-power_supply-leds-nouveau-ff4995ba0794
Best regards,
Comments
Reviewed-by: Lyude Paul <lyude@redhat.com> Will push to drm-misc-next in a moment On Wed, 2023-02-15 at 01:04 +0000, Thomas Weißschuh wrote: > Instead of relying on an accidental, transitive inclusion of linux/leds.h > use it directly. > > Also drop the forware definition of struct led_classdev that is now > provided by linux/leds.h. > > Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> > --- > drivers/gpu/drm/nouveau/nouveau_led.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/nouveau/nouveau_led.h b/drivers/gpu/drm/nouveau/nouveau_led.h > index 21a5775028cc..bc9bc7208da3 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_led.h > +++ b/drivers/gpu/drm/nouveau/nouveau_led.h > @@ -27,7 +27,7 @@ > > #include "nouveau_drv.h" > > -struct led_classdev; > +#include <linux/leds.h> > > struct nouveau_led { > struct drm_device *dev; > > --- > base-commit: e1c04510f521e853019afeca2a5991a5ef8d6a5b > change-id: 20230215-power_supply-leds-nouveau-ff4995ba0794 > > Best regards,
diff --git a/drivers/gpu/drm/nouveau/nouveau_led.h b/drivers/gpu/drm/nouveau/nouveau_led.h index 21a5775028cc..bc9bc7208da3 100644 --- a/drivers/gpu/drm/nouveau/nouveau_led.h +++ b/drivers/gpu/drm/nouveau/nouveau_led.h @@ -27,7 +27,7 @@ #include "nouveau_drv.h" -struct led_classdev; +#include <linux/leds.h> struct nouveau_led { struct drm_device *dev;