Why are three resources in gta01_button_resources array?
Michael Trimarchi
trimarchi at gandalf.sssup.it
Sat Feb 28 12:47:05 CET 2009
wei zheng wrote:
>
> Hi Michael & All,
>
> I have questions about the hardware buttons in neo
> 1973/freerunner. There are only two buttons on neo 1973/freerunner.
> Why are three resources in gta01_button_resources array?
>
>
>
> static struct resource gta01_button_resources[] = {
>
> [0] = {
>
> .start = GTA01_GPIO_AUX_KEY,
>
> .end = GTA01_GPIO_AUX_KEY,
>
> },
>
> [1] = {
>
> .start = GTA01_GPIO_HOLD_KEY,
>
> .end = GTA01_GPIO_HOLD_KEY,
>
> },
>
> [2] = {
>
> .start = GTA01_GPIO_JACK_INSERT,
>
> .end = GTA01_GPIO_JACK_INSERT,
>
> },
>
> };
>
I send you a patch. The problem is that the number of buttons in the
driver maybe more then
the resurce. You can use the min of the two or just rise a bug on.
Michael
More information about the openmoko-kernel
mailing list