Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2b7f1b8c8f4a8991dfeefc31844e15c642b6de2a Commit: 2b7f1b8c8f4a8991dfeefc31844e15c642b6de2a Parent: 92e015cb31c0a312bf2e0e5b96aef76a8c57e645 Author: Raphael Assenat <[EMAIL PROTECTED]> AuthorDate: Sun Jan 13 22:55:18 2008 +0000 Committer: Richard Purdie <[EMAIL PROTECTED]> CommitDate: Thu Feb 7 09:52:02 2008 +0000
leds: Fix led-gpio active_low default brightness When gpio_direction_output() is called, led_dat->active_low is used as default value. This means that the led will always be off by default. cdev.brightness should really have been set to LED_OFF unconditionally to reflect this behavior. Signed-off-by: Raphael Assenat <[EMAIL PROTECTED]> Signed-off-by: Richard Purdie <[EMAIL PROTECTED]> --- drivers/leds/leds-gpio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 99bc500..6c0a9c4 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers/leds/leds-gpio.c @@ -85,7 +85,7 @@ static int gpio_led_probe(struct platform_device *pdev) led_dat->can_sleep = gpio_cansleep(cur_led->gpio); led_dat->active_low = cur_led->active_low; led_dat->cdev.brightness_set = gpio_led_set; - led_dat->cdev.brightness = cur_led->active_low ? LED_FULL : LED_OFF; + led_dat->cdev.brightness = LED_OFF; ret = gpio_request(led_dat->gpio, led_dat->cdev.name); if (ret < 0) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html