mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
leds: add led-class attribute-group support
Allow led-class devices to be created with optional attribute groups. This is needed in order to allow led drivers to create custom device attributes in a race-free manner. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Bryan Wu <cooloney@gmail.com>
This commit is contained in:
parent
a497c3ba1d
commit
d0d480cce8
2 changed files with 5 additions and 2 deletions
|
@ -63,6 +63,8 @@ struct led_classdev {
|
|||
unsigned long *delay_off);
|
||||
|
||||
struct device *dev;
|
||||
const struct attribute_group **groups;
|
||||
|
||||
struct list_head node; /* LED Device list */
|
||||
const char *default_trigger; /* Trigger to use */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue