Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9efa5e50 authored by Aaron Lu's avatar Aaron Lu Committed by Rafael J. Wysocki
Browse files

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: default avatarAaron Lu <aaron.lu@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent f0eb2e5d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;