mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 00:30:16 +02:00
fix i2c-gpio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9309 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
525838efb5
commit
323d4460bf
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user