ACPI: button: Add DMI quirk for Lenovo Yoga 9 (14INTL5)
[sfrench/cifs-2.6.git] / drivers / acpi / button.c
index f25bd336113bd6f3676cd9f2be849cbd15821316..1f9b9a4c38c7d2fa4734a27c883b303e20700db0 100644 (file)
@@ -77,6 +77,17 @@ static const struct dmi_system_id dmi_lid_quirks[] = {
                },
                .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_DISABLED,
        },
+       {
+               /*
+                * Lenovo Yoga 9 14ITL5, initial notification of the LID device
+                * never happens.
+                */
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "82BG"),
+               },
+               .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
+       },
        {
                /*
                 * Medion Akoya E2215T, notification of the LID device only