[PATCH v3] leds: implement OpenFirmare GPIO LED driver

Nate Case ncase at xes-inc.com
Fri Jul 18 07:29:01 EST 2008


On Tue, 2008-07-15 at 19:19 +0400, Anton Vorontsov wrote:
> +       led->cdev.name = of_get_property(np, "label", NULL);
> +       if (!led->cdev.name)
> +               led->cdev.name = dev_name(&ofdev->dev);

How about also supporting a "trigger" property which would set
cdev.default_trigger in the same manner?  It would be useful for boards
to be able to specify this in the device tree (e.g., if a certain LED is
meant to be used as a "heartbeat").

-- 
Nate Case <ncase at xes-inc.com>




More information about the Linuxppc-dev mailing list