summaryrefslogtreecommitdiff
path: root/drivers/acpi/video.c
diff options
context:
space:
mode:
authorAaron Lu <aaron.lu@intel.com>2013-11-06 09:03:15 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-11-07 02:14:48 +0100
commit9efa5e50598c5568b0678bb411b239a0b6e9a328 (patch)
treed0b941b0984203694a38af9396b05c2085ed2efd /drivers/acpi/video.c
parentf0eb2e5dc06f5e100d59bb49a823f9a294e82db7 (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.c2
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)
* or an index). Set the backlight to max_level in this case.
*/
for (i = 2; i < br->count; i++)
- if (level_old == br->levels[i])
+ if (level == br->levels[i])
break;
if (i == br->count)
level = max_level;