On Sun, 15 Mar 2009, Jean-Francois Moine wrote: > On Sat, 14 Mar 2009 13:16:11 -0700 (PDT) > Trent Piepho <xyzzy@xxxxxxxxxxxxx> wrote: > > > There is already a sysfs led interface, you could just have the driver > > export the leds to the led subsystem and use that. > > Yes, but: > - this asks to have a kernel generated with CONFIG_NEW_LEDS, So? > - the user must use some new program to access /sys/class/leds/<device>, echo, cat? > - he must know how the LEDs of his webcam are named in the /sys tree. Just give them a name like video0:power and it will be easy enough to associate them with the device. I think links in sysfs would do it to, /sys/class/video4linux/video0/device/<ledname> or something like that. The advantage of using the led class is that you get support for triggers and automatic blink functions, etc. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html