Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272210
b: refs/heads/master
c: dabc69c
h: refs/heads/master
v: v3
  • Loading branch information
David Daney authored and Linus Torvalds committed Nov 1, 2011
1 parent 4b484bf commit c647d4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 93f539822ed60e18cd7fb417bff4efa1833af9f2
refs/heads/master: dabc69c24271bd6ac126e3dda4f2d72234da81df
2 changes: 1 addition & 1 deletion trunk/drivers/leds/leds-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int __devinit create_gpio_led(const struct gpio_led *template,
}
led_dat->cdev.brightness_set = gpio_led_set;
if (template->default_state == LEDS_GPIO_DEFSTATE_KEEP)
state = !!gpio_get_value(led_dat->gpio) ^ led_dat->active_low;
state = !!gpio_get_value_cansleep(led_dat->gpio) ^ led_dat->active_low;
else
state = (template->default_state == LEDS_GPIO_DEFSTATE_ON);
led_dat->cdev.brightness = state ? LED_FULL : LED_OFF;
Expand Down

0 comments on commit c647d4e

Please sign in to comment.