diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2023-02-15 04:04:53 +0300 |
---|---|---|
committer | Lyude Paul <lyude@redhat.com> | 2023-02-16 02:05:57 +0300 |
commit | f56e0071a6fea6b416943d8736f3128c8b2abed2 (patch) | |
tree | fd0ecfcb2d47eee955c6f84795b73cde660a2c85 | |
parent | 9ef8d83e8e25d5f1811b3a38eb1484f85f64296c (diff) | |
download | linux-f56e0071a6fea6b416943d8736f3128c8b2abed2.tar.xz |
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
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_led.h | 2 |
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; |