summaryrefslogtreecommitdiff
path: root/include/linux/leds.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-01-03 15:12:46 +0200
committerLee Jones <lee@kernel.org>2023-01-30 08:03:35 +0000
commitd35d0c9de762e003129dfc1240df7152a4bc31e8 (patch)
tree55123db2eb526e1dc0b06a3e587475ba7b662d52 /include/linux/leds.h
parenta82c7cf803d98751cd3ddb35828faad925d71982 (diff)
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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230103131256.33894-2-andriy.shevchenko@linux.intel.com
Diffstat (limited to 'include/linux/leds.h')
-rw-r--r--include/linux/leds.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h
index 31cb74b90ffc..4df46a85e5c2 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -10,17 +10,21 @@
#include <dt-bindings/leds/common.h>
#include <linux/device.h>
-#include <linux/kernfs.h>
-#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/rwsem.h>
#include <linux/spinlock.h>
#include <linux/timer.h>
+#include <linux/types.h>
#include <linux/workqueue.h>
-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);