Skip to contentSkip to conversation

platform/x86: asus-nb-wmi: add UX7602ZM DMI quirk

PATCH In review Paweł Hofman 2 participants 2 messages Feb 22

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86: asus-nb-wmi: add UX7602ZM DMI quirk

---
 drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +9 -0
index a38a65f5c550..19cd7ea13fef 100644
@@ -553,6 +553,15 @@ static const struct dmi_system_id asus_quirks[] = {
 		},
 		.driver_data = &quirk_asus_z13,
 	},
+        {
+                .callback = dmi_matched,
+                .ident = "ASUS Zenbook UX7602ZM",
+                .matches = {
+                        DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                        DMI_MATCH(DMI_PRODUCT_NAME, "Zenbook UX7602ZM_UX7602ZM"),
+                },
+                .driver_data = &quirk_asus_zenbook_duo_kbd,
+        },
 	{},
 };
 
Signature · 1 line
2.51.0
maintainer
#1 lore raw

Hello and than you for this.

There a few things missing here:
- a commit description for the why this was required
- your signed-off-by tag

Quoted 11 lines · Paweł Hofman
---
 drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/platform/x86/asus-nb-wmi.c +0 -0
index a38a65f5c550..19cd7ea13fef 100644
@@ -553,6 +553,15 @@ static const struct dmi_system_id asus_quirks[] = {
 		},
 		.driver_data = &quirk_asus_z13,

drivers/platform/x86/asus-nb-wmi.c static const struct dmi_system_id asus_quirks[] = { · line 564

Quoted 10 lines
drivers/platform/x86/asus-nb-wmi.c +9 -0
 	},
+        {
+                .callback = dmi_matched,
+                .ident = "ASUS Zenbook UX7602ZM",
+                .matches = {
+                        DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+                        DMI_MATCH(DMI_PRODUCT_NAME, "Zenbook UX7602ZM_UX7602ZM"),
+                },
+                .driver_data = &quirk_asus_zenbook_duo_kbd,
+        },

Please use tabs to align and ensure it is aligned with other entries.

Also keep all quirk_asus_zenbook_duo_kdb entries together please.

Quoted 3 lines
drivers/platform/x86/asus-nb-wmi.c +0 -0
 	{},
 };