linux/drivers/leds
Florian Fainelli 14b5d6dd40 leds: Fix race between LED device uevent and actual attributes creation
If we were to dynamically register/unregister leds and have udev or other
daemons handle the leds class uevents, we would be notified of the adding of a
new LED and if the daemon immediately tries to open one of the attributes of
the led device, it would fail with a "no such file or directory" error since
this the attributes are not yet created. Fix this by switching attributes to be
class-wide, such that the driver core will register these attributes with
device_add_attrs and then emit the kobject_uevent ADD signal.

Signed-off-by:  Fainelli <ffainelli@freebox.fr>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-16 20:27:25 +00:00
..
dell-led.c leds: Add Dell Business Class Netbook LED driver 2010-03-16 19:49:21 +00:00
Kconfig leds: Add Dell Business Class Netbook LED driver 2010-03-16 19:49:21 +00:00
led-class.c leds: Fix race between LED device uevent and actual attributes creation 2010-03-16 20:27:25 +00:00
led-core.c
led-triggers.c
leds-88pm860x.c led: Enable led in 88pm860x 2010-03-07 22:17:05 +01:00
leds-adp5520.c leds: Add driver for ADP5520/ADP5501 MFD PMICs 2009-12-16 11:30:10 +00:00
leds-alix2.c leds: leds-alix2c - take port address from MSR 2009-12-16 11:30:09 +00:00
leds-ams-delta.c omap: headers: Move remaining headers from include/mach to include/plat 2009-10-20 09:40:47 -07:00
leds-atmel-pwm.c
leds-bd2802.c
leds-clevo-mail.c
leds-cobalt-qube.c leds: use default-on trigger for Cobalt Qube 2009-12-17 11:38:31 +00:00
leds-cobalt-raq.c leds: leds-cobalt-raq.c - use resource_size() 2009-12-17 11:16:23 +00:00
leds-da903x.c
leds-dac124s085.c
leds-fsg.c IXP4xx: move FSG platform macros to the platform code. 2009-12-05 16:58:40 +01:00
leds-gpio.c leds-gpio: fix default state handling on OF platforms 2010-03-16 19:53:19 +00:00
leds-h1940.c
leds-hp6xx.c
leds-locomo.c collie: locomo-led change default trigger 2009-11-27 21:07:19 +01:00
leds-lp3944.c
leds-lt3593.c leds: Add driver for LT3593 controlled LEDs 2009-12-16 11:30:09 +00:00
leds-net48xx.c
leds-pca955x.c
leds-pca9532.c leds: leds-pca9532 - Drop unused module parameters 2009-10-04 22:53:43 +02:00
leds-pwm.c leds: leds-pwm: Set led_classdev max_brightness 2009-12-17 11:42:34 +00:00
leds-rb532.c
leds-regulator.c leds: Add LED class driver for regulator driven LEDs. 2009-12-17 11:27:09 +00:00
leds-s3c24xx.c
leds-ss4200.c leds: make PCI device id constant 2010-03-16 19:49:21 +00:00
leds-sunfire.c
leds-wm831x-status.c
leds-wm8350.c
leds-wrap.c
leds.h
ledtrig-backlight.c
ledtrig-default-on.c
ledtrig-gpio.c
ledtrig-heartbeat.c
ledtrig-ide-disk.c
ledtrig-timer.c tree-wide: convert open calls to remove spaces to skip_spaces() lib function 2009-12-15 08:53:32 -08:00
Makefile leds: Add Dell Business Class Netbook LED driver 2010-03-16 19:49:21 +00:00