public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/2] AT91: Use macros for gpio_to_irq/irq_to_gpio
@ 2011-02-11  3:44 Ryan Mallon
  2011-02-11  3:44 ` [PATCH 2/2] Add Snapper9260 rtc wakeup interrupt pin Ryan Mallon
  2011-02-11  5:17 ` [PATCH 1/2] AT91: Use macros for gpio_to_irq/irq_to_gpio Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 4+ messages in thread
From: Ryan Mallon @ 2011-02-11  3:44 UTC (permalink / raw)
  To: linux-arm-kernel

Replace the static inline functions for gpio_to_irq/irq_to_gpio so that they
can be used in static initialisers.

Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
---
 arch/arm/mach-at91/include/mach/gpio.h |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/arch/arm/mach-at91/include/mach/gpio.h b/arch/arm/mach-at91/include/mach/gpio.h
index bfdd8ab..ddeb645 100644
--- a/arch/arm/mach-at91/include/mach/gpio.h
+++ b/arch/arm/mach-at91/include/mach/gpio.h
@@ -220,15 +220,8 @@ extern void at91_gpio_resume(void);
 #define gpio_set_value	__gpio_set_value
 #define gpio_cansleep	__gpio_cansleep
 
-static inline int gpio_to_irq(unsigned gpio)
-{
-	return gpio;
-}
-
-static inline int irq_to_gpio(unsigned irq)
-{
-	return irq;
-}
+#define gpio_to_irq(gpio) (gpio)
+#define irq_to_gpio(irq)  (irq)
 
 #endif	/* __ASSEMBLY__ */
 
-- 
1.7.0.4

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

* [PATCH 2/2] Add Snapper9260 rtc wakeup interrupt pin
  2011-02-11  3:44 [PATCH 1/2] AT91: Use macros for gpio_to_irq/irq_to_gpio Ryan Mallon
@ 2011-02-11  3:44 ` Ryan Mallon
  2011-02-11  5:17   ` Jean-Christophe PLAGNIOL-VILLARD
  2011-02-11  5:17 ` [PATCH 1/2] AT91: Use macros for gpio_to_irq/irq_to_gpio Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 1 reply; 4+ messages in thread
From: Ryan Mallon @ 2011-02-11  3:44 UTC (permalink / raw)
  To: linux-arm-kernel


Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
---
 arch/arm/mach-at91/board-snapper9260.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-at91/board-snapper9260.c b/arch/arm/mach-at91/board-snapper9260.c
index 0a99b3c..17f7d9b 100644
--- a/arch/arm/mach-at91/board-snapper9260.c
+++ b/arch/arm/mach-at91/board-snapper9260.c
@@ -153,6 +153,7 @@ static struct i2c_board_info __initdata snapper9260_i2c_devices[] = {
 	{
 		/* RTC */
 		I2C_BOARD_INFO("isl1208", 0x6f),
+		.irq = gpio_to_irq(AT91_PIN_PA31),
 	},
 };
 
-- 
1.7.0.4

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

* [PATCH 1/2] AT91: Use macros for gpio_to_irq/irq_to_gpio
  2011-02-11  3:44 [PATCH 1/2] AT91: Use macros for gpio_to_irq/irq_to_gpio Ryan Mallon
  2011-02-11  3:44 ` [PATCH 2/2] Add Snapper9260 rtc wakeup interrupt pin Ryan Mallon
@ 2011-02-11  5:17 ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 0 replies; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-02-11  5:17 UTC (permalink / raw)
  To: linux-arm-kernel

On 16:44 Fri 11 Feb     , Ryan Mallon wrote:
> Replace the static inline functions for gpio_to_irq/irq_to_gpio so that they
> can be used in static initialisers.
> 
> Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
> ---
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Best Regards,
J.

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

* [PATCH 2/2] Add Snapper9260 rtc wakeup interrupt pin
  2011-02-11  3:44 ` [PATCH 2/2] Add Snapper9260 rtc wakeup interrupt pin Ryan Mallon
@ 2011-02-11  5:17   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-02-11  5:17 UTC (permalink / raw)
  To: linux-arm-kernel

On 16:44 Fri 11 Feb     , Ryan Mallon wrote:
> 
> Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
> ---
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Best Regards,
J.

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

end of thread, other threads:[~2011-02-11  5:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-11  3:44 [PATCH 1/2] AT91: Use macros for gpio_to_irq/irq_to_gpio Ryan Mallon
2011-02-11  3:44 ` [PATCH 2/2] Add Snapper9260 rtc wakeup interrupt pin Ryan Mallon
2011-02-11  5:17   ` Jean-Christophe PLAGNIOL-VILLARD
2011-02-11  5:17 ` [PATCH 1/2] AT91: Use macros for gpio_to_irq/irq_to_gpio Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox