Re: [PATCH v3] leds: implement OpenFirmare GPIO LED driver

From: Nate Case
Date: Thu Jul 17 2008 - 18:17:20 EST

On Tue, 2008-07-15 at 19:19 +0400, Anton Vorontsov wrote:
> + led-> = of_get_property(np, "label", NULL);
> + if (!led->
> + led-> = 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@xxxxxxxxxxx>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at