diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-11-14 17:44:59 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-07 13:11:42 +0300 |
commit | 8af3d02aae3ecc23ee84d7078d1ebb3df7557dda (patch) | |
tree | fa8373b68a4a1f37980a8a68c21daeb96cebbe0c /.rustfmt.toml | |
parent | 923c1922bdbe44bdbebe57b5b976d40f68853653 (diff) | |
download | linux-8af3d02aae3ecc23ee84d7078d1ebb3df7557dda.tar.xz |
ACPI: video: Prefer native over vendor
[ Upstream commit fb1836c91317e0770950260dfa91eb9b2170cb27 ]
When available prefer native backlight control over vendor backlight
control.
Testing has shown that there are quite a few laptop models which rely
on native backlight control (they don't have ACPI video bus backlight
control) and on which acpi_osi_is_win8() returns false.
Currently __acpi_video_get_backlight_type() returns vendor on these
laptops, leading to an empty /sys/class/backlight.
As a workaround for this acpi_video_backlight_use_native() has been
temporarily changed to always return true.
This re-introduces the problem of having multiple backlight
devices under /sys/class/backlight for a single panel.
Change __acpi_video_get_backlight_type() to prefer native over vendor
when available. So that it returns native on these models.
And change acpi_video_backlight_use_native() back to only return
true when __acpi_video_get_backlight_type() returns native.
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>
Diffstat (limited to '.rustfmt.toml')
0 files changed, 0 insertions, 0 deletions