diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-10-14 05:04:23 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-10-14 05:04:23 +0000 |
commit | 323d4460bf52d332bffd17595c8e67ca55748aaa (patch) | |
tree | ca5c23fab74ad83f888da3147d31414461170b5c /target/linux/brcm47xx/files/include/asm-mips | |
parent | 525838efb5328c49f8623781375a09a29b2b5878 (diff) |
fix i2c-gpio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9309 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/files/include/asm-mips')
-rw-r--r-- | target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h | 6 |
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 9a67e8e764..499df4ef18 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; |