Skip to content

Commit 156a5bb

Browse files
andy-shevlag-linaro
authored andcommitted
leds: Move led_init_default_state_get() to the global header
There are users inside and outside LED framework that have implemented a local copy of led_init_default_state_get(). In order to deduplicate that, as the first step move the declaration from LED header to the global one. 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-3-andriy.shevchenko@linux.intel.com
1 parent d35d0c9 commit 156a5bb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/leds/leds.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ ssize_t led_trigger_read(struct file *filp, struct kobject *kobj,
2727
ssize_t led_trigger_write(struct file *filp, struct kobject *kobj,
2828
struct bin_attribute *bin_attr, char *buf,
2929
loff_t pos, size_t count);
30-
enum led_default_state led_init_default_state_get(struct fwnode_handle *fwnode);
3130

3231
extern struct rw_semaphore leds_list_lock;
3332
extern struct list_head leds_list;

include/linux/leds.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ struct led_init_data {
8282
bool devname_mandatory;
8383
};
8484

85+
enum led_default_state led_init_default_state_get(struct fwnode_handle *fwnode);
86+
8587
struct led_hw_trigger_type {
8688
int dummy;
8789
};

0 commit comments

Comments
 (0)