aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-10-14 05:04:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-10-14 05:04:23 +0000
commit32b8dd5541bca34b855954860c0efab1317fd5d7 (patch)
treeca5c23fab74ad83f888da3147d31414461170b5c /target/linux
parent8c3f16c2595f48e3ebf5e0beac0a8c529ed44d07 (diff)
downloadupstream-32b8dd5541bca34b855954860c0efab1317fd5d7.tar.gz
upstream-32b8dd5541bca34b855954860c0efab1317fd5d7.tar.bz2
upstream-32b8dd5541bca34b855954860c0efab1317fd5d7.zip
fix i2c-gpio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9309 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-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 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;