From: Andy Shevchenko Date: Tue, 3 Jan 2023 13:12:46 +0000 (+0200) Subject: leds: Add missing includes and forward declarations in leds.h X-Git-Tag: v6.3-rc1~114^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d35d0c9de762e003129dfc1240df7152a4bc31e8;p=thirdparty%2Flinux.git leds: Add missing includes and forward declarations in leds.h Add missing includes and forward declarations to leds.h. While at it, replace headers by forward declarations and vise versa. Signed-off-by: Andy Shevchenko Signed-off-by: Lee Jones Link: https://lore.kernel.org/r/20230103131256.33894-2-andriy.shevchenko@linux.intel.com --- diff --git a/include/linux/leds.h b/include/linux/leds.h index 31cb74b90ffcd..4df46a85e5c29 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -10,17 +10,21 @@ #include #include -#include -#include #include #include #include #include +#include #include -struct device; -struct led_pattern; +struct attribute_group; struct device_node; +struct fwnode_handle; +struct gpio_desc; +struct kernfs_node; +struct led_pattern; +struct platform_device; + /* * LED Core */ @@ -529,7 +533,6 @@ struct led_properties { const char *label; }; -struct gpio_desc; typedef int (*gpio_blink_set_t)(struct gpio_desc *desc, int state, unsigned long *delay_on, unsigned long *delay_off);