Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad56c0dd authored by Ryan Mallon's avatar Ryan Mallon Committed by Russell King
Browse files

ARM: 6664/1: AT91: Use macros for gpio_to_irq/irq_to_gpio



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

Signed-off-by: default avatarRyan Mallon <ryan@bluewatersys.com>
Signed-off-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 85e2efbb
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -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__ */