From: Alexandre Courbot Date: Mon, 9 Jul 2012 06:04:23 +0000 (+0900) Subject: pwm_backlight: pass correct brightness to callback X-Git-Tag: v3.6-rc1~66^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fb978b12f9cc2b4df428764273d96877d0a262d;p=pandora-kernel.git pwm_backlight: pass correct brightness to callback pwm_backlight_update_status calls the notify() and notify_after() callbacks before and after applying the new PWM settings. However, if brightness levels are used, the brightness value will be changed from the index into the levels array to the PWM duty cycle length before being passed to notify_after(), which results in inconsistent behavior. Signed-off-by: Alexandre Courbot Signed-off-by: Thierry Reding --- Reading git-diff-tree failed