Changeset 9309


Ignore:
Timestamp:
2007-10-14T07:04:23+02:00 (9 years ago)
Author:
nbd
Message:

fix i2c-gpio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/files/include/asm-mips/mach-bcm947xx/gpio.h

    r7814 r9309  
    2828} 
    2929 
    30 static inline int gpio_direction_output(unsigned gpio) 
     30static inline int gpio_direction_output(unsigned gpio, int value) 
    3131{ 
    3232        if (ssb.chipco.dev) 
    33                 ssb_chipco_gpio_outen(&ssb.chipco, 1 << gpio, 1 << gpio); 
     33                ssb_chipco_gpio_outen(&ssb.chipco, 1 << gpio, value << gpio); 
    3434        else if (ssb.extif.dev) 
    35                 ssb_extif_gpio_outen(&ssb.extif, 1 << gpio, 1 << gpio); 
     35                ssb_extif_gpio_outen(&ssb.extif, 1 << gpio, value << gpio); 
    3636        else 
    3737                return -EINVAL; 
Note: See TracChangeset for help on using the changeset viewer.