aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorJason Stubbs <jasonbstubbs@gmail.com>2011-09-20 09:16:11 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-11 09:42:54 -0800
commit9cb3ef17ebb449a3ae6deb564463b611fa945c32 (patch)
tree9be3c0281169b4dbbde23d827d1da9ed4a1674d5 /net/lapb/lapb_in.c
parent9393a575db4d55a806d5b1250f6a9e987d8c8788 (diff)
platform: samsung_laptop: fix samsung brightness min/max calculations
commit bee460be8c691c544e84ed678280ace6153104c6 upstream. 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 <jasonbstubbs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions