Re: [PATCH] new class for led devices

From: Geert Uytterhoeven
Date: Wed Sep 22 2004 - 02:56:57 EST


On Wed, 22 Sep 2004, John Lenz wrote:
> This is an attempt to provide an alternative to the current arm specific led
> interface that is generic for all arches and uses the "one value, one file"
> idea of sysfs.
>
> I removed the function attribute that was in the previous patch, and added the
> ability for userspace to control the timer on each led individually.
> Userspace can also set the delay in milliseconds for the blink.

(damned, non-inlined patch)

| - heartbeat: a read/write attribute that controls the heartbeat of this
| led. If heartbeat=0, then this led is controlled by userspace.
| Otherwise, heartbeat gives the time in milliseconds to delay between
| light changes.

That's not the real heartbeat! The real one says thumb-thumb-pause, and goes
faster if the load average increases :-)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
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/