From a3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 14 Oct 2007 05:04:23 +0000 Subject: [PATCH] fix i2c-gpio SVN-Revision: 9309 --- .../brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h | 6 +++--- 1 file 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; -- 2.30.2