summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-10-14 05:04:23 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-10-14 05:04:23 +0000
commit323d4460bf52d332bffd17595c8e67ca55748aaa (patch)
treeca5c23fab74ad83f888da3147d31414461170b5c /target
parent525838efb5328c49f8623781375a09a29b2b5878 (diff)
fix i2c-gpio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9309 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h b/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h
index 9a67e8e76..499df4ef1 100644
--- a/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h
+++ b/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;