fix i2c-gpio

SVN-Revision: 9309
master
Felix Fietkau 17 years ago
parent 7558f0281f
commit a3c1000f0f
  1. 6
      target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h

@ -27,12 +27,12 @@ static inline int gpio_direction_input(unsigned gpio)
return 0;
}
static inline int gpio_direction_output(unsigned gpio)
static inline int gpio_direction_output(unsigned gpio, int value)
{
if (ssb.chipco.dev)
ssb_chipco_gpio_outen(&ssb.chipco, 1 << gpio, 1 << gpio);
ssb_chipco_gpio_outen(&ssb.chipco, 1 << gpio, value << gpio);
else if (ssb.extif.dev)
ssb_extif_gpio_outen(&ssb.extif, 1 << gpio, 1 << gpio);
ssb_extif_gpio_outen(&ssb.extif, 1 << gpio, value << gpio);
else
return -EINVAL;

Loading…
Cancel
Save