linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] gpio-lpc32xx: Add GPI_28
@ 2012-09-25  7:56 Roland Stigge
  2012-09-25  7:56 ` [PATCH 2/2] gpio: Document device_node's det_debounce Roland Stigge
  2012-09-30  8:26 ` [PATCH 1/2] gpio-lpc32xx: Add GPI_28 Linus Walleij
  0 siblings, 2 replies; 4+ messages in thread
From: Roland Stigge @ 2012-09-25  7:56 UTC (permalink / raw)
  To: linux-arm-kernel

This patch adds the missing gpi28 to the list of GPIOs in the GPI P3 "chip".

NOTE: This patch depends on incrementing LPC32XX_GPI_P3_MAX.  When applied
without the respective mach-lpc32xx patch (merged via arm-soc.git), gcc will
give a warning about "excess elements in array initializer" but this doesn't
harm.

Signed-off-by: Roland Stigge <stigge@antcom.de>

---
 arch/arm/mach-lpc32xx/include/mach/gpio-lpc32xx.h |    2 +-
 drivers/gpio/gpio-lpc32xx.c                       |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

--- linux-2.6.orig/drivers/gpio/gpio-lpc32xx.c
+++ linux-2.6/drivers/gpio/gpio-lpc32xx.c
@@ -113,7 +113,8 @@ static const char *gpi_p3_names[LPC32XX_
 	 NULL,    NULL,    NULL,   "gpi15",
 	"gpi16", "gpi17", "gpi18", "gpi19",
 	"gpi20", "gpi21", "gpi22", "gpi23",
-	"gpi24", "gpi25", "gpi26", "gpi27"
+	"gpi24", "gpi25", "gpi26", "gpi27",
+	"gpi28"
 };
 
 static const char *gpo_p3_names[LPC32XX_GPO_P3_MAX] = {

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

* [PATCH 2/2] gpio: Document device_node's det_debounce
  2012-09-25  7:56 [PATCH 1/2] gpio-lpc32xx: Add GPI_28 Roland Stigge
@ 2012-09-25  7:56 ` Roland Stigge
  2012-09-30  8:27   ` Linus Walleij
  2012-09-30  8:26 ` [PATCH 1/2] gpio-lpc32xx: Add GPI_28 Linus Walleij
  1 sibling, 1 reply; 4+ messages in thread
From: Roland Stigge @ 2012-09-25  7:56 UTC (permalink / raw)
  To: linux-arm-kernel

This patch adds documentation for set_debounce in struct device_node.

Signed-off-by: Roland Stigge <stigge@antcom.de>

---
 include/asm-generic/gpio.h |    2 ++
 1 file changed, 2 insertions(+)

--- linux-2.6.orig/include/asm-generic/gpio.h
+++ linux-2.6/include/asm-generic/gpio.h
@@ -60,6 +60,8 @@ struct device_node;
  * @get: returns value for signal "offset"; for output signals this
  *	returns either the value actually sensed, or zero
  * @direction_output: configures signal "offset" as output, or returns error
+ * @set_debounce: optional hook for setting debounce time for specified gpio in
+ *      interrupt triggered gpio chips
  * @set: assigns output value for signal "offset"
  * @to_irq: optional hook supporting non-static gpio_to_irq() mappings;
  *	implementation may not sleep

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

* [PATCH 1/2] gpio-lpc32xx: Add GPI_28
  2012-09-25  7:56 [PATCH 1/2] gpio-lpc32xx: Add GPI_28 Roland Stigge
  2012-09-25  7:56 ` [PATCH 2/2] gpio: Document device_node's det_debounce Roland Stigge
@ 2012-09-30  8:26 ` Linus Walleij
  1 sibling, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2012-09-30  8:26 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Sep 25, 2012 at 9:56 AM, Roland Stigge <stigge@antcom.de> wrote:

> This patch adds the missing gpi28 to the list of GPIOs in the GPI P3 "chip".
>
> NOTE: This patch depends on incrementing LPC32XX_GPI_P3_MAX.  When applied
> without the respective mach-lpc32xx patch (merged via arm-soc.git), gcc will
> give a warning about "excess elements in array initializer" but this doesn't
> harm.
>
> Signed-off-by: Roland Stigge <stigge@antcom.de>

OK patch applied.

Yours,
Linus Walleij

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

* [PATCH 2/2] gpio: Document device_node's det_debounce
  2012-09-25  7:56 ` [PATCH 2/2] gpio: Document device_node's det_debounce Roland Stigge
@ 2012-09-30  8:27   ` Linus Walleij
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2012-09-30  8:27 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Sep 25, 2012 at 9:56 AM, Roland Stigge <stigge@antcom.de> wrote:

> This patch adds documentation for set_debounce in struct device_node.
>
> Signed-off-by: Roland Stigge <stigge@antcom.de>

Applied, thanks!
Linus Walleij

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

end of thread, other threads:[~2012-09-30  8:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-25  7:56 [PATCH 1/2] gpio-lpc32xx: Add GPI_28 Roland Stigge
2012-09-25  7:56 ` [PATCH 2/2] gpio: Document device_node's det_debounce Roland Stigge
2012-09-30  8:27   ` Linus Walleij
2012-09-30  8:26 ` [PATCH 1/2] gpio-lpc32xx: Add GPI_28 Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).