Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Andy Shevchenko and committed by
Lee Jones
d35d0c9d a82c7cf8

+8 -5
+8 -5
include/linux/leds.h
··· 10 10 11 11 #include <dt-bindings/leds/common.h> 12 12 #include <linux/device.h> 13 - #include <linux/kernfs.h> 14 - #include <linux/list.h> 15 13 #include <linux/mutex.h> 16 14 #include <linux/rwsem.h> 17 15 #include <linux/spinlock.h> 18 16 #include <linux/timer.h> 17 + #include <linux/types.h> 19 18 #include <linux/workqueue.h> 20 19 21 - struct device; 22 - struct led_pattern; 20 + struct attribute_group; 23 21 struct device_node; 22 + struct fwnode_handle; 23 + struct gpio_desc; 24 + struct kernfs_node; 25 + struct led_pattern; 26 + struct platform_device; 27 + 24 28 /* 25 29 * LED Core 26 30 */ ··· 533 529 const char *label; 534 530 }; 535 531 536 - struct gpio_desc; 537 532 typedef int (*gpio_blink_set_t)(struct gpio_desc *desc, int state, 538 533 unsigned long *delay_on, 539 534 unsigned long *delay_off);