summaryrefslogtreecommitdiff
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
commita3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb (patch)
tree0c6874e8d42a0bda1c1dd40d8263ce867cf7af1a
parent7558f0281fe69414821289db83750fbec3e36d3f (diff)
downloadmtk-20170518-a3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb.zip
mtk-20170518-a3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb.tar.gz
mtk-20170518-a3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb.tar.bz2
fix i2c-gpio
SVN-Revision: 9309
-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 9a67e8e..499df4e 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;