summaryrefslogtreecommitdiff
path: root/include/linux/leds.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2014-06-25 10:08:44 -0700
committerBryan Wu <cooloney@gmail.com>2014-06-25 14:55:03 -0700
commitd0d480cce8f522b37c2c1de38230fc9ad15fa506 (patch)
treec02d866399ddfe0e4c4d3c09ec1cb26343b9d925 /include/linux/leds.h
parenta497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee (diff)
downloadlinux-rpi3-d0d480cce8f522b37c2c1de38230fc9ad15fa506.tar.gz
linux-rpi3-d0d480cce8f522b37c2c1de38230fc9ad15fa506.tar.bz2
linux-rpi3-d0d480cce8f522b37c2c1de38230fc9ad15fa506.zip
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>
Diffstat (limited to 'include/linux/leds.h')
-rw-r--r--include/linux/leds.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h
index 0287ab296689..e43686472197 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -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 */