Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269417
b: refs/heads/master
c: ece88dc
h: refs/heads/master
i:
  269415: 603ed3f
v: v3
  • Loading branch information
Stephen Warren authored and Russell King committed Aug 24, 2011
1 parent be49f32 commit a1d76ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 438a99c078b1bc3c9aebd92e7928f2477311d3e5
refs/heads/master: ece88dc08b87501025927bf52e460655f89e2c02
16 changes: 0 additions & 16 deletions trunk/arch/arm/mach-tegra/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,6 @@
#define TEGRA_NR_GPIOS INT_GPIO_NR

#define TEGRA_GPIO_TO_IRQ(gpio) (INT_GPIO_BASE + (gpio))
#define TEGRA_IRQ_TO_GPIO(irq) ((irq) - INT_GPIO_BASE)

static inline int gpio_to_irq(unsigned int gpio)
{
if (gpio < TEGRA_NR_GPIOS)
return INT_GPIO_BASE + gpio;
return -EINVAL;
}
#define gpio_to_irq gpio_to_irq

static inline int irq_to_gpio(unsigned int irq)
{
if ((irq >= INT_GPIO_BASE) && (irq < INT_GPIO_BASE + INT_GPIO_NR))
return irq - INT_GPIO_BASE;
return -EINVAL;
}

struct tegra_gpio_table {
int gpio; /* GPIO number */
Expand Down

0 comments on commit a1d76ff

Please sign in to comment.