Changeset 8376


Ignore:
Timestamp:
2007-08-07T18:11:58+02:00 (11 years ago)
Author:
juhosg
Message:

add support for special LED brightness values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c

    r7744 r8376  
    6767 
    6868        switch (brightness) { 
     69        case LED_FULL: 
     70                gpio_direction_output(pdata->gpio, pdata->value_on); 
     71                break; 
    6972        case LED_OFF: 
    7073                gpio_direction_output(pdata->gpio, pdata->value_off); 
    7174                break; 
    7275        default: 
    73                 gpio_direction_output(pdata->gpio, pdata->value_on); 
     76                gpio_direction_output(pdata->gpio, brightness); 
    7477                break; 
    7578        } 
Note: See TracChangeset for help on using the changeset viewer.