leds: add led-class attribute-group support
authorJohan Hovold <johan@kernel.org>
Wed, 25 Jun 2014 17:08:44 +0000 (10:08 -0700)
committerBryan Wu <cooloney@gmail.com>
Wed, 25 Jun 2014 21:55:03 +0000 (14:55 -0700)
commitd0d480cce8f522b37c2c1de38230fc9ad15fa506
treec02d866399ddfe0e4c4d3c09ec1cb26343b9d925
parenta497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee
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>
drivers/leds/led-class.c
include/linux/leds.h