summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_led.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-02-15 01:04:53 +0000
committerLyude Paul <lyude@redhat.com>2023-02-15 18:05:57 -0500
commitf56e0071a6fea6b416943d8736f3128c8b2abed2 (patch)
treefd0ecfcb2d47eee955c6f84795b73cde660a2c85 /drivers/gpu/drm/nouveau/nouveau_led.h
parent9ef8d83e8e25d5f1811b3a38eb1484f85f64296c (diff)
drm/nouveau/led: explicitly include linux/leds.h
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> Reviewed-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230215-power_supply-leds-nouveau-v1-1-ea93bfa0ba7e@weissschuh.net
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_led.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_led.h2
1 files changed, 1 insertions, 1 deletions
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;