Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196791
b: refs/heads/master
c: 3e1bf29
h: refs/heads/master
i:
  196789: 6e3a712
  196787: 6b6c703
  196783: b876718
v: v3
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed May 21, 2010
1 parent 72a7224 commit 8288bc6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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: 32130ec2daa0aa095f7c5d915a11a18d33b35402
refs/heads/master: 3e1bf29f73ccb31b99215476b0278f477db1a247
6 changes: 3 additions & 3 deletions trunk/arch/mips/bcm63xx/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static int bcm63xx_gpio_set_direction(struct gpio_chip *chip,

spin_lock_irqsave(&bcm63xx_gpio_lock, flags);
tmp = bcm_gpio_readl(reg);
if (dir == GPIO_DIR_IN)
if (dir == BCM63XX_GPIO_DIR_IN)
tmp &= ~mask;
else
tmp |= mask;
Expand All @@ -103,14 +103,14 @@ static int bcm63xx_gpio_set_direction(struct gpio_chip *chip,

static int bcm63xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
{
return bcm63xx_gpio_set_direction(chip, gpio, GPIO_DIR_IN);
return bcm63xx_gpio_set_direction(chip, gpio, BCM63XX_GPIO_DIR_IN);
}

static int bcm63xx_gpio_direction_output(struct gpio_chip *chip,
unsigned gpio, int value)
{
bcm63xx_gpio_set(chip, gpio, value);
return bcm63xx_gpio_set_direction(chip, gpio, GPIO_DIR_OUT);
return bcm63xx_gpio_set_direction(chip, gpio, BCM63XX_GPIO_DIR_OUT);
}


Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static inline unsigned long bcm63xx_gpio_count(void)
}
}

#define GPIO_DIR_OUT 0x0
#define GPIO_DIR_IN 0x1
#define BCM63XX_GPIO_DIR_OUT 0x0
#define BCM63XX_GPIO_DIR_IN 0x1

#endif /* !BCM63XX_GPIO_H */

0 comments on commit 8288bc6

Please sign in to comment.