[PATCH 10/11] ARM: pxa: Pass GPIO offset to ucb1400-gpio on PalmTC

Eric Miao eric.y.miao at gmail.com
Mon Sep 20 10:47:08 EDT 2010


On Thu, Sep 16, 2010 at 10:33 AM, Marek Vasut <marek.vasut at gmail.com> wrote:
> Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
> ---
>  arch/arm/mach-pxa/palmtc.c |   10 +++++++++-
>  1 files changed, 9 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-pxa/palmtc.c b/arch/arm/mach-pxa/palmtc.c
> index 7f868d4..9c74ce9 100644
> --- a/arch/arm/mach-pxa/palmtc.c
> +++ b/arch/arm/mach-pxa/palmtc.c
> @@ -367,6 +367,14 @@ static inline void palmtc_udc_init(void) {}
>  ******************************************************************************/
>  #if    defined(CONFIG_TOUCHSCREEN_UCB1400) || \
>        defined(CONFIG_TOUCHSCREEN_UCB1400_MODULE)
> +static struct ucb1400_pdata palmtc_ucb1400_pdata = {
> +       .gpio_offset    = PALMTC_UCB1400_GPIO_OFFSET,
> +};
> +
> +static pxa2xx_audio_ops_t palmtc_ac97_pdata = {
> +       .codec_pdata    = { &palmtc_ucb1400_pdata, },
> +};
> +
>  static struct platform_device palmtc_ucb1400_device = {
>        .name   = "ucb1400_core",
>        .id     = -1,
> @@ -374,7 +382,7 @@ static struct platform_device palmtc_ucb1400_device = {
>
>  static void __init palmtc_ts_init(void)
>  {
> -       pxa_set_ac97_info(NULL);
> +       pxa_set_ac97_info(&palmtc_ac97_pdata);
>        platform_device_register(&palmtc_ucb1400_device);
>  }
>  #else
> --
> 1.7.1
>
>

OK.



More information about the linux-arm-kernel mailing list