mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 13:23:18 +00:00
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
This commit is contained in:
parent
d35d0c9de7
commit
156a5bb89c
@ -27,7 +27,6 @@ ssize_t led_trigger_read(struct file *filp, struct kobject *kobj,
|
||||
ssize_t led_trigger_write(struct file *filp, struct kobject *kobj,
|
||||
struct bin_attribute *bin_attr, char *buf,
|
||||
loff_t pos, size_t count);
|
||||
enum led_default_state led_init_default_state_get(struct fwnode_handle *fwnode);
|
||||
|
||||
extern struct rw_semaphore leds_list_lock;
|
||||
extern struct list_head leds_list;
|
||||
|
@ -82,6 +82,8 @@ struct led_init_data {
|
||||
bool devname_mandatory;
|
||||
};
|
||||
|
||||
enum led_default_state led_init_default_state_get(struct fwnode_handle *fwnode);
|
||||
|
||||
struct led_hw_trigger_type {
|
||||
int dummy;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user