From: Jason Stubbs Date: Tue, 20 Sep 2011 16:16:11 +0000 (-0700) Subject: platform: samsung_laptop: fix samsung brightness min/max calculations X-Git-Tag: v3.2-rc1~111^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bee460be8c691c544e84ed678280ace6153104c6;p=pandora-kernel.git platform: samsung_laptop: fix samsung brightness min/max calculations The min_brightness value of the sabi_config is incorrectly used in brightness calculations. For the config where min_brightness = 1 and max_brightness = 8, the user visible range should be 0 to 7 with hardware being set in the range of 1 to 8. What is actually happening is that the user visible range is 0 to 8 with hardware being set in the range of -1 to 7. This patch fixes the above issue as well as a miscalculation that would occur in the case of min_brightness > 1. Signed-off-by: Jason Stubbs Cc: stable Signed-off-by: Greg Kroah-Hartman Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed