]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPI: video: Move Lenovo Legion S7 15ACH6 quirk to the right section
authorHans de Goede <johannes.goede@oss.qualcomm.com>
Mon, 13 Apr 2026 09:31:00 +0000 (11:31 +0200)
committerRafael J. Wysocki <rjw@rjwysocki.net>
Wed, 15 Apr 2026 14:58:55 +0000 (16:58 +0200)
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: f144bc21befd ("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>
drivers/acpi/video_detect.c

index 4a2132ae28b4d5e6f8b64f5267dbf8a11278bf46..0a3c8232d15d7a9ad5d6b9c3f5d3281da4c9a45c 100644 (file)
@@ -907,6 +907,15 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
                DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 15 3535"),
                },
        },
+       {
+        /* https://gitlab.freedesktop.org/drm/amd/-/issues/4512 */
+        .callback = video_detect_force_native,
+        /* Lenovo Legion S7 15ACH6 */
+        .matches = {
+               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+               DMI_MATCH(DMI_PRODUCT_NAME, "82K8"),
+               },
+       },
 
        /*
         * x86 android tablets which directly control the backlight through
@@ -956,14 +965,6 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
                DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"),
                },
        },
-       /* https://gitlab.freedesktop.org/drm/amd/-/issues/4512 */
-       {
-        .callback = video_detect_force_native,
-        .matches = {
-               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-               DMI_MATCH(DMI_PRODUCT_NAME, "82K8"),
-               },
-       },
        { },
 };