Files
linux-stable-mirror/drivers
Hans de GoedeandGreg Kroah-Hartman 923c1922bd ACPI: video: Simplify __acpi_video_get_backlight_type()
[ Upstream commit a5df42521f ]

Simplify __acpi_video_get_backlight_type() removing a nested if which
makes the flow harder to follow.

This also results in having only 1 exit point with
return acpi_backlight_native instead of 2.

Note this drops the (video_caps & ACPI_VIDEO_BACKLIGHT) check from
the if (acpi_osi_is_win8() && native_available) return native path.
Windows 8's hardware certification requirements include that there must
be ACPI video bus backlight control, so the ACPI_VIDEO_BACKLIGHT check
is redundant.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-07 11:11:42 +01:00
..
2023-01-07 11:11:39 +01:00
2023-01-04 11:29:01 +01:00
2022-12-31 13:33:12 +01:00