linux-stable/drivers/leds
Trent Piepho a7d878af94 leds: Add openfirmware platform device support
Add bindings to support LEDs defined as of_platform devices in addition to
the existing bindings for platform devices.

New options in Kconfig allow the platform binding code and/or the
of_platform code to be turned on.  The of_platform code is of course only
available on archs that have OF support.

The existing probe and remove methods are refactored to use new functions
create_gpio_led(), to create and register one led, and delete_gpio_led(),
to unregister and free one led.  The new probe and remove methods for the
of_platform driver can then share most of the common probe and remove code
with the platform driver.

The suspend and resume methods aren't shared, but they are very short.  The
actual led driving code is the same for LEDs created by either binding.

The OF bindings are based on patch by Anton Vorontsov
<avorontsov@ru.mvista.com>.  They have been extended to allow multiple LEDs
per device.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Sean MacLennan <smaclennan@pikatech.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-04-06 16:06:25 +01:00
..
Kconfig leds: Add openfirmware platform device support 2009-04-06 16:06:25 +01:00
led-class.c leds: Add suspend/resume to the core class 2009-01-08 17:55:03 +00:00
led-core.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
led-triggers.c leds: Ensure led->trigger is set earlier 2008-07-23 09:49:56 +01:00
leds-alix2.c leds: Add suspend/resume to the core class 2009-01-08 17:55:03 +00:00
leds-ams-delta.c leds: Add suspend/resume to the core class 2009-01-08 17:55:03 +00:00
leds-atmel-pwm.c leds: fix unsigned value overflow in atmel pwm driver 2008-07-23 09:49:56 +01:00
leds-clevo-mail.c leds: Add suspend/resume to the core class 2009-01-08 17:55:03 +00:00
leds-cobalt-qube.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-cobalt-raq.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-da903x.c leds: da903x: (da9030 only) led brightness reversed. 2008-10-30 22:14:10 +08:00
leds-fsg.c leds: Add suspend/resume to the core class 2009-01-08 17:55:03 +00:00
leds-gpio.c leds: Add openfirmware platform device support 2009-04-06 16:06:25 +01:00
leds-h1940.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
leds-hp6xx.c leds: Add suspend/resume to the core class 2009-01-08 17:55:03 +00:00
leds-locomo.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
leds-net48xx.c leds: Add suspend/resume to the core class 2009-01-08 17:55:03 +00:00
leds-pca955x.c leds: leds-pca955x - Mark pca955x_led_set() static 2008-10-20 22:57:56 +01:00
leds-pca9532.c trivial: Update my email address 2009-03-30 15:22:04 +02:00
leds-s3c24xx.c leds: Add suspend/resume to the core class 2009-01-08 17:55:03 +00:00
leds-sunfire.c leds: Add driver for Sunfire UltraSPARC server LEDs. 2008-08-31 20:26:48 -07:00
leds-wm8350.c leds: Add suspend/resume to the core class 2009-01-08 17:55:03 +00:00
leds-wrap.c leds: Add suspend/resume to the core class 2009-01-08 17:55:03 +00:00
leds.h leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
ledtrig-backlight.c leds: Add backlight LED trigger 2008-10-20 22:34:12 +01:00
ledtrig-default-on.c leds: Add default-on trigger 2008-04-25 00:06:52 +01:00
ledtrig-heartbeat.c [PATCH] LED: add LED heartbeat trigger 2006-06-25 10:01:23 -07:00
ledtrig-ide-disk.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
ledtrig-timer.c leds: ledtrig-timer - on deactivation hardware blinking should be disabled 2009-01-08 20:58:01 +00:00
Makefile lis3lv02d: merge with leds hp disk 2009-01-15 16:39:40 -08:00