[PATCH] leds: implement OpenFirmare GPIO LED driver

Sean MacLennan smaclennan at pikatech.com
Fri Jul 18 00:58:54 EST 2008


On Thu, 17 Jul 2008 15:07:30 +0400
"Anton Vorontsov" <avorontsov at ru.mvista.com> wrote:

> This is tricky question. Personally I place them inside the gpio
> controller node that is responsible for the LED. But I think placing
> the led nodes at top level would be also fine (maybe with "leds { }"
> node as a parent for all board's LEDs. What would you suggest for a
> "best practice"?

I also put the leds under the gpio controller for the Warp. It is then
very clear which gpio controller the leds belong to.

Putting them at the top level does not associate the leds with the
correct gpio controller.

Warning: I am *not* using the of gpio led driver, but I hope to move to
it once the dust settles and drop the current Warp specific driver ;)

Cheers,
   Sean



More information about the Linuxppc-dev mailing list