From 5a6b7b4f12340dd1aff47634f0a92a7d615237ba Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 5 Sep 2018 08:27:30 -0600 Subject: [PATCH] Begin matching galp2 and serw11 when System76 is the BIOS vendor --- system76.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/system76.c b/system76.c index 713ec44..1d750e3 100644 --- a/system76.c +++ b/system76.c @@ -241,6 +241,19 @@ static int __init s76_dmi_matched(const struct dmi_system_id *id) { return 1; } +// Devices that did launch with DKMS support but have been updated with it +#define DMI_TABLE_LEGACY(PRODUCT) { \ + .ident = "System76 " PRODUCT, \ + .matches = { \ + DMI_MATCH(DMI_SYS_VENDOR, "System76"), \ + DMI_MATCH(DMI_PRODUCT_VERSION, PRODUCT), \ + DMI_MATCH(DMI_BIOS_VENDOR, "System76"), \ + }, \ + .callback = s76_dmi_matched, \ + .driver_data = NULL, \ +} + +// Devices that launched with DKMS support #define DMI_TABLE(PRODUCT) { \ .ident = "System76 " PRODUCT, \ .matches = { \ @@ -252,6 +265,8 @@ static int __init s76_dmi_matched(const struct dmi_system_id *id) { } static struct dmi_system_id s76_dmi_table[] __initdata = { + DMI_TABLE_LEGACY("galp2"), + DMI_TABLE_LEGACY("serw11"), DMI_TABLE("galp3-b"), DMI_TABLE("gaze13"), DMI_TABLE("kudu5"),