From 0c929206bd357c566c332c6bf775d7f4fc77dddb Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Thu, 24 Jun 2021 12:40:47 +0200 Subject: [PATCH] Add Stellaris devices for lightbar --- src/uniwill_keyboard.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h index e691a70..39c04a0 100644 --- a/src/uniwill_keyboard.h +++ b/src/uniwill_keyboard.h @@ -481,7 +481,7 @@ static int uw_kbd_bl_init(struct platform_device *dev) #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) TUXEDO_ERROR( - "Warning: Kernel version less that 4.18, certain features might not be properly recognized."); + "Warning: Kernel version less that 4.18, keyboard backlight might not be properly recognized."); #endif // Save previous enable state @@ -714,7 +714,18 @@ static int uw_lightbar_init(struct platform_device *dev) || dmi_match(DMI_BOARD_NAME, "TRINITY1501I") || dmi_match(DMI_BOARD_NAME, "TRINITY1701I") || dmi_match(DMI_PRODUCT_NAME, "A60 MUV") +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0) + || dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XI03") + || dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XA03") + +#endif ; + +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) + TUXEDO_ERROR( + "Warning: Kernel version less that 4.18, lightbar might not be properly recognized."); +#endif + if (!lightbar_supported) return -ENODEV;