Re: [PATCH 2/3] leds-clevo-mail: hw accelerated LED blink extension

From: Dmitry Torokhov
Date: Tue Jul 17 2007 - 09:04:44 EST


On 7/17/07, Németh Márton <nm127@xxxxxxxxxxx> wrote:

+Hardware accelerated blink of LEDs
+==================================
+
+Some LEDs can be programmed to blink without any CPU interaction. To
+support this feature, a LED driver can optionally implement the
+blink_set() function (see <linux/leds.h>). If implemeted, the
+ledtrig-timer tries to use it. The blink_set() function should return
+1 if the blink setting is supported, or 0 otherwise, which means that
+the LED will be turned on and off from software.

Normally object methods in kernel return 0 on success and error code
(such as -EINVAL for unsupported parameters) on error.

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/