Skip to content

Commit

Permalink
ARM: 6664/1: AT91: Use macros for gpio_to_irq/irq_to_gpio
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Ryan Mallon authored and Russell King committed Feb 19, 2011
1 parent 85e2efb commit ad56c0d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions arch/arm/mach-at91/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */

Expand Down

0 comments on commit ad56c0d

Please sign in to comment.