From: Felix Fietkau Date: Sun, 14 Oct 2007 05:04:23 +0000 (+0000) Subject: fix i2c-gpio X-Git-Tag: reboot~27827 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb;p=openwrt%2Fstaging%2Flynxis.git fix i2c-gpio SVN-Revision: 9309 --- 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;