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>
This commit is contained in:
parent
f0eb2e5dc0
commit
9efa5e5059
|
@ -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.
|
* or an index). Set the backlight to max_level in this case.
|
||||||
*/
|
*/
|
||||||
for (i = 2; i < br->count; i++)
|
for (i = 2; i < br->count; i++)
|
||||||
if (level_old == br->levels[i])
|
if (level == br->levels[i])
|
||||||
break;
|
break;
|
||||||
if (i == br->count)
|
if (i == br->count)
|
||||||
level = max_level;
|
level = max_level;
|
||||||
|
|
Loading…
Reference in New Issue