From 17354bfe85275f1bdde7f4a27ebc1ba53e053939 Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Tue, 17 Feb 2009 13:18:11 +0200 Subject: leds: Add gpio-led trigger The gpio led trigger will allow leds to be triggered by gpio events. When we give the led a gpio number, the trigger will request_irq() on that so we don't have to keep polling for gpio state. It's useful for usecases as n810's keypad leds that could be triggered by the gpio event generated when user slides up to show the keypad. We also provide means for userland to tell us what is the desired brightness for that special led when it goes on so userland could use information from ambient light sensors and not set led brightness too high if it's not necessary. Signed-off-by: Felipe Balbi Signed-off-by: Richard Purdie --- drivers/leds/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/leds/Makefile') diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile index 017f69aa2ec..291aea22bf0 100644 --- a/drivers/leds/Makefile +++ b/drivers/leds/Makefile @@ -35,4 +35,5 @@ obj-$(CONFIG_LEDS_TRIGGER_TIMER) += ledtrig-timer.o obj-$(CONFIG_LEDS_TRIGGER_IDE_DISK) += ledtrig-ide-disk.o obj-$(CONFIG_LEDS_TRIGGER_HEARTBEAT) += ledtrig-heartbeat.o obj-$(CONFIG_LEDS_TRIGGER_BACKLIGHT) += ledtrig-backlight.o +obj-$(CONFIG_LEDS_TRIGGER_GPIO) += ledtrig-gpio.o obj-$(CONFIG_LEDS_TRIGGER_DEFAULT_ON) += ledtrig-default-on.o -- cgit v1.2.3-70-g09d2