All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] omap: Fix build break with omap3_defconfig
@ 2010-05-28 15:53 Santosh Shilimkar
  2010-05-28 18:01 ` Kevin Hilman
  0 siblings, 1 reply; 3+ messages in thread
From: Santosh Shilimkar @ 2010-05-28 15:53 UTC (permalink / raw)
  To: linux-omap; +Cc: Santosh Shilimkar

With latest linus's tip omap3_defconfig is broken.

>From the commit 8feb337475aaf, board-omap3stalker.c seems to
be missed out.

 LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/arm/mach-omap2/built-in.o: In function `ads7846_dev_init':
linux-2.6/arch/arm/mach-omap2/board-omap3stalker.c:542: undefined reference to `omap_set_gpio_debounce'
linux-2.6/arch/arm/mach-omap2/board-omap3stalker.c:543: undefined reference to `omap_set_gpio_debounce_time'
make: *** [.tmp_vmlinux1] Error 1

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
---
 arch/arm/mach-omap2/board-omap3stalker.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c
index f848ba8..a04cffd 100644
--- a/arch/arm/mach-omap2/board-omap3stalker.c
+++ b/arch/arm/mach-omap2/board-omap3stalker.c
@@ -538,9 +538,7 @@ static void ads7846_dev_init(void)
 		printk(KERN_ERR "can't get ads7846 pen down GPIO\n");
 
 	gpio_direction_input(OMAP3_STALKER_TS_GPIO);
-
-	omap_set_gpio_debounce(OMAP3_STALKER_TS_GPIO, 1);
-	omap_set_gpio_debounce_time(OMAP3_STALKER_TS_GPIO, 0xa);
+	gpio_set_debounce(OMAP3_STALKER_TS_GPIO, 310);
 }
 
 static int ads7846_get_pendown_state(void)
-- 
1.6.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] omap: Fix build break with omap3_defconfig
  2010-05-28 15:53 [PATCH] omap: Fix build break with omap3_defconfig Santosh Shilimkar
@ 2010-05-28 18:01 ` Kevin Hilman
  2010-05-29  5:42   ` Shilimkar, Santosh
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Hilman @ 2010-05-28 18:01 UTC (permalink / raw)
  To: Santosh Shilimkar; +Cc: linux-omap

Santosh Shilimkar <santosh.shilimkar@ti.com> writes:

> With latest linus's tip omap3_defconfig is broken.

This subject/shortlog is not terribly useful for git history.  it
should say something like

OMAP: Stalker board: update usage of GPIO debounce API

or something like that.  The changelog should summarize that this
API changed (or was removed) in mainline and the previous change
that updated this API missed this board etc...

All of this can be deduced from reading the current patch and changelog,
but it's better to summarize it in the changelog.

Thanks,

Kevin

> From the commit 8feb337475aaf, board-omap3stalker.c seems to
> be missed out.
>
>  LD      init/built-in.o
>   LD      .tmp_vmlinux1
> arch/arm/mach-omap2/built-in.o: In function `ads7846_dev_init':
> linux-2.6/arch/arm/mach-omap2/board-omap3stalker.c:542: undefined reference to `omap_set_gpio_debounce'
> linux-2.6/arch/arm/mach-omap2/board-omap3stalker.c:543: undefined reference to `omap_set_gpio_debounce_time'
> make: *** [.tmp_vmlinux1] Error 1
>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> ---
>  arch/arm/mach-omap2/board-omap3stalker.c |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c
> index f848ba8..a04cffd 100644
> --- a/arch/arm/mach-omap2/board-omap3stalker.c
> +++ b/arch/arm/mach-omap2/board-omap3stalker.c
> @@ -538,9 +538,7 @@ static void ads7846_dev_init(void)
>  		printk(KERN_ERR "can't get ads7846 pen down GPIO\n");
>  
>  	gpio_direction_input(OMAP3_STALKER_TS_GPIO);
> -
> -	omap_set_gpio_debounce(OMAP3_STALKER_TS_GPIO, 1);
> -	omap_set_gpio_debounce_time(OMAP3_STALKER_TS_GPIO, 0xa);
> +	gpio_set_debounce(OMAP3_STALKER_TS_GPIO, 310);
>  }
>  
>  static int ads7846_get_pendown_state(void)
> -- 
> 1.6.0.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] omap: Fix build break with omap3_defconfig
  2010-05-28 18:01 ` Kevin Hilman
@ 2010-05-29  5:42   ` Shilimkar, Santosh
  0 siblings, 0 replies; 3+ messages in thread
From: Shilimkar, Santosh @ 2010-05-29  5:42 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: linux-omap

 -----Original Message-----
> From: Kevin Hilman [mailto:khilman@deeprootsystems.com]
> Sent: Friday, May 28, 2010 11:32 PM
> To: Shilimkar, Santosh
> Cc: linux-omap@vger.kernel.org
> Subject: Re: [PATCH] omap: Fix build break with omap3_defconfig
> 
> Santosh Shilimkar <santosh.shilimkar@ti.com> writes:
> 
> > With latest linus's tip omap3_defconfig is broken.
> 
> This subject/shortlog is not terribly useful for git history.  it
> should say something like
> 
> OMAP: Stalker board: update usage of GPIO debounce API
> 
Sure. The subject should have included " Stalker" board.

> or something like that.  The changelog should summarize that this
> API changed (or was removed) in mainline and the previous change
> that updated this API missed this board etc...
> 
> All of this can be deduced from reading the current patch and changelog,
> but it's better to summarize it in the changelog.
> 
Exactly and that's why I just gave reference to the commit ID.

Will repost with changelog/subject corrected.

> Thanks,
> 
> Kevin
> 
> > From the commit 8feb337475aaf, board-omap3stalker.c seems to
> > be missed out.
> >
> >  LD      init/built-in.o
> >   LD      .tmp_vmlinux1
> > arch/arm/mach-omap2/built-in.o: In function `ads7846_dev_init':
> > linux-2.6/arch/arm/mach-omap2/board-omap3stalker.c:542: undefined reference to
> `omap_set_gpio_debounce'
> > linux-2.6/arch/arm/mach-omap2/board-omap3stalker.c:543: undefined reference to
> `omap_set_gpio_debounce_time'
> > make: *** [.tmp_vmlinux1] Error 1
> >
> > Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> > ---
> >  arch/arm/mach-omap2/board-omap3stalker.c |    4 +---
> >  1 files changed, 1 insertions(+), 3 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c
> > index f848ba8..a04cffd 100644
> > --- a/arch/arm/mach-omap2/board-omap3stalker.c
> > +++ b/arch/arm/mach-omap2/board-omap3stalker.c
> > @@ -538,9 +538,7 @@ static void ads7846_dev_init(void)
> >  		printk(KERN_ERR "can't get ads7846 pen down GPIO\n");
> >
> >  	gpio_direction_input(OMAP3_STALKER_TS_GPIO);
> > -
> > -	omap_set_gpio_debounce(OMAP3_STALKER_TS_GPIO, 1);
> > -	omap_set_gpio_debounce_time(OMAP3_STALKER_TS_GPIO, 0xa);
> > +	gpio_set_debounce(OMAP3_STALKER_TS_GPIO, 310);
> >  }
> >
> >  static int ads7846_get_pendown_state(void)
> > --
> > 1.6.0.4
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-29  5:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-28 15:53 [PATCH] omap: Fix build break with omap3_defconfig Santosh Shilimkar
2010-05-28 18:01 ` Kevin Hilman
2010-05-29  5:42   ` Shilimkar, Santosh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.