diff options
author | Jason Stubbs <[email protected]> | 2011-09-20 09:16:11 -0700 |
---|---|---|
committer | Matthew Garrett <[email protected]> | 2011-10-24 16:52:35 +0200 |
commit | bee460be8c691c544e84ed678280ace6153104c6 (patch) | |
tree | dfca717127a7369d99675ee29bef603933b01a8d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 093ed561648d43263c009ea88abab21a31cd4f1d (diff) |
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 <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions