[PATCH 5/6] arm: footbridge: convert old leds event driver to led gpio trigger driver of Netwinder

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Jun 13 04:23:01 EDT 2011


On Mon, Jun 13, 2011 at 02:39:44PM +0800, Bryan Wu wrote:
> +/* LEDs */
> +static struct gpio_led nw_gpio_leds[] = {
> +        {
> +                .name                   = "netwinder::led_red",
> +                .default_trigger        = "heartbeat",
> +                .gpio                   = GPIO_RED_LED,
> +        },
> +        {
> +                .name                   = "netwinder::led_green",
> +                .default_trigger        = "timer",
> +                .gpio                   = GPIO_GREEN_LED,
> +        },

This is especially broken.  This platform has no GPIO support other
than its private stuff, which makes the use of the GPIO LED driver
useless.  The GPIO_*_LED constants are bitmasks for the CPLD
controller.



More information about the linux-arm-kernel mailing list