[PATCH 5/6] arm: footbridge: convert old leds event driver to led gpio trigger driver of Netwinder
Bryan Wu
bryan.wu at canonical.com
Mon Jun 13 06:02:02 EDT 2011
On Mon, Jun 13, 2011 at 4:23 PM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> 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.
>
I was totally confused by the name GPIO_*_* definitions stuff in the
hardware.h. Sorry about that, it looks like I need rewrite it as my
6th patch.
Thanks,
--
Bryan Wu <bryan.wu at canonical.com>
Kernel Developer +86.138-1617-6545 Mobile
Ubuntu Kernel Team
Canonical Ltd. www.canonical.com
Ubuntu - Linux for human beings | www.ubuntu.com
More information about the linux-arm-kernel
mailing list