Skip to content

Commit 61b00c0

Browse files
Hans de Goederafaeljw
authored andcommitted
ACPI: video: Move Lenovo Legion S7 15ACH6 quirk to the right section
The video_detect_dmi_table[] quirk table has different sections for different types of problems. The Lenovo Legion S7 15ACH6 quirk deals with a non working nvidia_wmi_ec backlight, move it to the section with the other models with this problem. While at it also add a comment with the laptop model name to the quirk. Fixes: f144bc2 ("ACPI: video: force native for Lenovo 82K8") Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com> Link: https://patch.msgid.link/20260413093100.24993-1-johannes.goede@oss.qualcomm.com Signed-off-by: Rafael J. Wysocki <rjw@rjwysocki.net>
1 parent ad7997f commit 61b00c0

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

drivers/acpi/video_detect.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,15 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
907907
DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 15 3535"),
908908
},
909909
},
910+
{
911+
/* https://gitlab.freedesktop.org/drm/amd/-/issues/4512 */
912+
.callback = video_detect_force_native,
913+
/* Lenovo Legion S7 15ACH6 */
914+
.matches = {
915+
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
916+
DMI_MATCH(DMI_PRODUCT_NAME, "82K8"),
917+
},
918+
},
910919

911920
/*
912921
* x86 android tablets which directly control the backlight through
@@ -956,14 +965,6 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
956965
DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"),
957966
},
958967
},
959-
/* https://gitlab.freedesktop.org/drm/amd/-/issues/4512 */
960-
{
961-
.callback = video_detect_force_native,
962-
.matches = {
963-
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
964-
DMI_MATCH(DMI_PRODUCT_NAME, "82K8"),
965-
},
966-
},
967968
{ },
968969
};
969970

0 commit comments

Comments
 (0)