Skip to content

Commit d35d0c9

Browse files
andy-shevlag-linaro
authored andcommitted
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
1 parent a82c7cf commit d35d0c9

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

include/linux/leds.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,21 @@
1010

1111
#include <dt-bindings/leds/common.h>
1212
#include <linux/device.h>
13-
#include <linux/kernfs.h>
14-
#include <linux/list.h>
1513
#include <linux/mutex.h>
1614
#include <linux/rwsem.h>
1715
#include <linux/spinlock.h>
1816
#include <linux/timer.h>
17+
#include <linux/types.h>
1918
#include <linux/workqueue.h>
2019

21-
struct device;
22-
struct led_pattern;
20+
struct attribute_group;
2321
struct device_node;
22+
struct fwnode_handle;
23+
struct gpio_desc;
24+
struct kernfs_node;
25+
struct led_pattern;
26+
struct platform_device;
27+
2428
/*
2529
* LED Core
2630
*/
@@ -529,7 +533,6 @@ struct led_properties {
529533
const char *label;
530534
};
531535

532-
struct gpio_desc;
533536
typedef int (*gpio_blink_set_t)(struct gpio_desc *desc, int state,
534537
unsigned long *delay_on,
535538
unsigned long *delay_off);

0 commit comments

Comments
 (0)