ACPI / APEI: adjust a local variable type in ghes_ioremap_pfn_irq()
[platform/kernel/linux-rpi.git] / drivers / acpi / video_detect.c
index d179e8d..601e5d3 100644 (file)
@@ -103,6 +103,12 @@ static int video_detect_force_native(const struct dmi_system_id *d)
        return 0;
 }
 
+static int video_detect_force_none(const struct dmi_system_id *d)
+{
+       acpi_backlight_dmi = acpi_backlight_none;
+       return 0;
+}
+
 static const struct dmi_system_id video_detect_dmi_table[] = {
        /* On Samsung X360, the BIOS will set a flag (VDRV) if generic
         * ACPI backlight device is used. This flag will definitively break
@@ -313,6 +319,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
                DMI_MATCH(DMI_PRODUCT_NAME, "Precision 7510"),
                },
        },
+       {
+        .callback = video_detect_force_none,
+        .ident = "Dell OptiPlex 9020M",
+        .matches = {
+               DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+               DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 9020M"),
+               },
+       },
        { },
 };