aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2008-03-09 19:48:25 -0400
committerRichard Purdie <rpurdie@rpsys.net>2008-04-24 18:37:42 -0400
commitca3259b3603539e72faacc6821050ee889a52103 (patch)
tree0c8e482b4354d2433046e86aabb6cb8e1db32162 /include
parent4d404fd5c51772720e9c72aa3185bd5119bc6e69 (diff)
leds: enable support for blink_set() platform hook in leds-gpio
Enhance leds-gpio to provide hardware-based led flashing by passing through the blink_set() call to a optionally set platform-specific function pointer. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org> Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/leds.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h
index b07e3d400bd6..c195a674b6ca 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -126,6 +126,9 @@ struct gpio_led {
126struct gpio_led_platform_data { 126struct gpio_led_platform_data {
127 int num_leds; 127 int num_leds;
128 struct gpio_led *leds; 128 struct gpio_led *leds;
129 int (*gpio_blink_set)(unsigned gpio,
130 unsigned long *delay_on,
131 unsigned long *delay_off);
129}; 132};
130 133
131 134