Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142040
b: refs/heads/master
c: defb512
h: refs/heads/master
v: v3
  • Loading branch information
Richard Purdie committed Apr 6, 2009
1 parent b4fa40e commit 7a74b07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41c42ff5dbe29b7b826e6736f960959c76e7acf0
refs/heads/master: defb512d2576992c63ba1c18c24eea31cfeaa26e
3 changes: 2 additions & 1 deletion trunk/drivers/leds/leds-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ static int __devinit create_gpio_led(const struct gpio_led *template,
}
led_dat->cdev.brightness_set = gpio_led_set;
led_dat->cdev.brightness = LED_OFF;
led_dat->cdev.flags |= LED_CORE_SUSPENDRESUME;
if (!template->retain_state_suspended)
led_dat->cdev.flags |= LED_CORE_SUSPENDRESUME;

ret = gpio_direction_output(led_dat->gpio, led_dat->active_low);
if (ret < 0)
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/leds.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ struct gpio_led {
const char *name;
const char *default_trigger;
unsigned gpio;
u8 active_low;
u8 active_low : 1;
u8 retain_state_suspended : 1;
};

struct gpio_led_platform_data {
Expand Down

0 comments on commit 7a74b07

Please sign in to comment.