diff options
author | Aaron Lu <aaron.lu@intel.com> | 2013-11-05 20:03:15 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-06 20:14:48 -0500 |
commit | 9efa5e50598c5568b0678bb411b239a0b6e9a328 (patch) | |
tree | d0b941b0984203694a38af9396b05c2085ed2efd /drivers/acpi/video.c | |
parent | f0eb2e5dc06f5e100d59bb49a823f9a294e82db7 (diff) |
ACPI / video: Fix initial level validity test
When testing if the firmware's initial value is valid, we should use
the corrected level value instead of the raw value returned from
firmware.
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/video.c')
-rw-r--r-- | drivers/acpi/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 38c3a28d6392..bf521b36c2f9 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -856,7 +856,7 @@ acpi_video_init_brightness(struct acpi_video_device *device) | |||
856 | * or an index). Set the backlight to max_level in this case. | 856 | * or an index). Set the backlight to max_level in this case. |
857 | */ | 857 | */ |
858 | for (i = 2; i < br->count; i++) | 858 | for (i = 2; i < br->count; i++) |
859 | if (level_old == br->levels[i]) | 859 | if (level == br->levels[i]) |
860 | break; | 860 | break; |
861 | if (i == br->count) | 861 | if (i == br->count) |
862 | level = max_level; | 862 | level = max_level; |