[PATCHv3 2/2] platform/x86: dell-sysman: add support for alienware products

From: Crag Wang
Date: Thu Oct 03 2024 - 22:44:13 EST


Alienware supports firmware-attributes and has its own OEM string.

Signed-off-by: Crag Wang <crag_wang@xxxxxxxx>
---
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/platform/x86/dell/dell-wmi-sysman/sysman.c b/drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
index c05474f1ed70..68c63e1fbd27 100644
--- a/drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
+++ b/drivers/platform/x86/dell/dell-wmi-sysman/sysman.c
@@ -520,7 +520,8 @@ static int __init sysman_init(void)
{
int ret = 0;

- if (!dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Dell System", NULL)) {
+ if (!dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Dell System", NULL) &&
+ !dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Alienware", NULL)) {
pr_err("Unable to run on non-Dell system\n");
return -ENODEV;
}
--
2.43.0