diff options
author | Raphael Assenat <raph@8d.com> | 2007-02-27 19:49:53 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-07-16 01:15:50 +0100 |
commit | 22e03f3b58dfcca30f0c8de185022132459638d1 (patch) | |
tree | 0597fa494d55f44191ec99b4bb34a937efcab0e7 /include/linux/leds.h | |
parent | 8f41958bdd577731f7411c9605cfaa9db6766809 (diff) | |
download | blackbird-op-linux-22e03f3b58dfcca30f0c8de185022132459638d1.tar.gz blackbird-op-linux-22e03f3b58dfcca30f0c8de185022132459638d1.zip |
leds: Add generic GPIO LED driver
This patch adds support for GPIO connected leds via the new GPIO framework.
Information about leds (gpio, polarity, name, default trigger) is passed
to the driver via platform_data.
Signed-off-by: Raphael Assenat <raph@8d.com>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'include/linux/leds.h')
-rw-r--r-- | include/linux/leds.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h index 88afceffb7cb..059abfe219dc 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -110,4 +110,18 @@ extern void ledtrig_ide_activity(void); #define ledtrig_ide_activity() do {} while(0) #endif +/* For the leds-gpio driver */ +struct gpio_led { + const char *name; + char *default_trigger; + unsigned gpio; + u8 active_low; +}; + +struct gpio_led_platform_data { + int num_leds; + struct gpio_led *leds; +}; + + #endif /* __LINUX_LEDS_H_INCLUDED */ |