diff options
author | Márton Németh <nm127@freemail.hu> | 2007-10-31 10:07:12 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-02-07 04:49:38 -0500 |
commit | 4c79141d28bc290ae307e3f81f5bc909c26faf6e (patch) | |
tree | 9c6dc51c441dfc1c84cc27ece43087515c06967c /include/linux | |
parent | 6c152beefbf90579d21afc4f7e075b1f801f9a75 (diff) |
leds: Add support for hardware accelerated LED flashing
Extends the leds subsystem with a blink_set() callback function which can
be optionally implemented by a LED driver. If implemented, the driver can use
the hardware acceleration for blinking a LED.
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/leds.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h index 00f89fd6c52a..0201f6f51cea 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h | |||
@@ -38,6 +38,11 @@ struct led_classdev { | |||
38 | void (*brightness_set)(struct led_classdev *led_cdev, | 38 | void (*brightness_set)(struct led_classdev *led_cdev, |
39 | enum led_brightness brightness); | 39 | enum led_brightness brightness); |
40 | 40 | ||
41 | /* Activate hardware accelerated blink */ | ||
42 | int (*blink_set)(struct led_classdev *led_cdev, | ||
43 | unsigned long *delay_on, | ||
44 | unsigned long *delay_off); | ||
45 | |||
41 | struct device *dev; | 46 | struct device *dev; |
42 | struct list_head node; /* LED Device list */ | 47 | struct list_head node; /* LED Device list */ |
43 | char *default_trigger; /* Trigger to use */ | 48 | char *default_trigger; /* Trigger to use */ |