Commit 24ba808a authored by Gabriele Mazzotta's avatar Gabriele Mazzotta Committed by Hans de Goede
Browse files

platform/x86: dell-laptop: Add quirk entry for Latitude 7520



The Latitude 7520 supports AC timeouts, but it has no KBD_LED_AC_TOKEN
and so changes to stop_timeout appear to have no effect if the laptop
is plugged in.

Signed-off-by: default avatarGabriele Mazzotta <gabriele.mzt@gmail.com>
Acked-by: default avatarPali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20220426120827.12363-1-gabriele.mzt@gmail.com


Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent c5f2b8e9
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -80,6 +80,10 @@ static struct quirk_entry quirk_dell_inspiron_1012 = {
	.kbd_led_not_present = true,
};

static struct quirk_entry quirk_dell_latitude_7520 = {
	.kbd_missing_ac_tag = true,
};

static struct platform_driver platform_driver = {
	.driver = {
		.name = "dell-laptop",
@@ -336,6 +340,15 @@ static const struct dmi_system_id dell_quirks[] __initconst = {
		},
		.driver_data = &quirk_dell_inspiron_1012,
	},
	{
		.callback = dmi_matched,
		.ident = "Dell Latitude 7520",
		.matches = {
			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
			DMI_MATCH(DMI_PRODUCT_NAME, "Latitude 7520"),
		},
		.driver_data = &quirk_dell_latitude_7520,
	},
	{ }
};