Re: [PATCH 2/12] pxa: remove the pin configuration from the keypad driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Eric,

On Wednesday 23 January 2008 02:17, eric miao wrote:
> From dbd62bced0f789765d1823f66af792933c6b46a1 Mon Sep 17 00:00:00 2001
> From: eric miao <eric.miao@xxxxxxxxxxx>
> Date: Tue, 22 Jan 2008 16:34:12 +0800
> Subject: [PATCH] pxa: remove the pin configuration from the keypad driver
> 
> The pin configurations will slowly be moved to the board specific code
> at initialization thus to make the driver more generic.
> 
> Signed-off-by: eric miao <eric.miao@xxxxxxxxxxx>
> ---
>  drivers/input/keyboard/pxa27x_keypad.c   |    4 ----
>  include/asm-arm/arch-pxa/pxa27x_keypad.h |    1 -
>  2 files changed, 0 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/input/keyboard/pxa27x_keypad.c
> b/drivers/input/keyboard/pxa27x_keypad.c
> index 06c1d5a..43fb63d 100644
> --- a/drivers/input/keyboard/pxa27x_keypad.c
> +++ b/drivers/input/keyboard/pxa27x_keypad.c
> @@ -208,10 +208,6 @@ static int __devinit pxa27x_keypad_probe(struct
> platform_device *pdev)
>  	if (error)
>  		goto err_free_irq;
> 
> -	/* Setup GPIOs. */
> -	for (i = 0; i < pdata->nr_rows + pdata->nr_cols; i++)
> -		pxa_gpio_mode(pdata->gpio_modes[i]);
> -

That would require GPIO code to be replicated in every subarch piece. Do you
expect many boards require special GPIO setup or maybe it would make sense
to keep something similar to the code above (possibly have pointer to array
of gpio modes and array size in pdata)? This way simpler boards will just
supply the list and more complex setups can still do it themselves?

-- 
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux