From: Lars-Peter Clausen Date: Fri, 27 Nov 2009 05:17:38 +0000 (+0100) Subject: leds: leds-pwm: Set led_classdev max_brightness X-Git-Tag: v2.6.33-rc1~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e45906203d27296b47e56efc1219f9a200bfc2db;p=pandora-kernel.git leds: leds-pwm: Set led_classdev max_brightness Currently the driver leds-pwm doesn't set max_brightness for the led device although it's platform data proides a maximum brightness. Instead it stores its own private driver struct. The max_brightness defaults to 255 for led device if it has not been set. As a result any leds-pwm device with a different maximum brightness will show incorrect behavior, as it is posible to either set a longer then period duty time or not be able to switch the led to full brightness. Signed-off-by: Lars-Peter Clausen Signed-off-by: Richard Purdie --- Reading git-diff-tree failed