fix i2c-gpio

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9309 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2007-10-14 05:04:23 +00:00
parent 8c3f16c259
commit 32b8dd5541
1 changed files with 3 additions and 3 deletions

View File

@ -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;