diff options
author | antman666 | 2022-02-05 21:23:01 +0800 |
---|---|---|
committer | antman666 | 2022-02-05 21:23:01 +0800 |
commit | 666131c5232c1744f057f1b99781d2c3ff18d7ba (patch) | |
tree | 8ea6e1ea9e00199ac016cca1605e67d85909b456 /0006-lg-laptop-Recognize-more-models.patch | |
parent | 163485bf197c5ddbcc4e9c1603b1818e2c727ff1 (diff) | |
download | aur-666131c5232c1744f057f1b99781d2c3ff18d7ba.tar.gz |
update linux-ck-uksm to 5.16.5-1
Diffstat (limited to '0006-lg-laptop-Recognize-more-models.patch')
-rw-r--r-- | 0006-lg-laptop-Recognize-more-models.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/0006-lg-laptop-Recognize-more-models.patch b/0006-lg-laptop-Recognize-more-models.patch deleted file mode 100644 index 8e554b7bbdee..000000000000 --- a/0006-lg-laptop-Recognize-more-models.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 72edf8c167268bb68d701f46006ccfdfa5490db8 Mon Sep 17 00:00:00 2001 -From: Matan Ziv-Av <matan@svgalib.org> -Date: Tue, 23 Nov 2021 22:14:55 +0200 -Subject: [PATCH 6/7] lg-laptop: Recognize more models - -LG uses 5 instead of 0 in the third digit (second digit after 2019) of the year string to indicate newer models in the same year. Handle this case as well. - -Signed-off-by: Matan Ziv-Av <matan@svgalib.org> -For: https://bugs.archlinux.org/task/71772 ---- - drivers/platform/x86/lg-laptop.c | 12 ++++++++++++ - 1 file changed, 12 insertions(+) - -diff --git a/drivers/platform/x86/lg-laptop.c b/drivers/platform/x86/lg-laptop.c -index 88b551caeaaf..d6f74d3a7605 100644 ---- a/drivers/platform/x86/lg-laptop.c -+++ b/drivers/platform/x86/lg-laptop.c -@@ -658,6 +658,18 @@ static int acpi_add(struct acpi_device *device) - if (product && strlen(product) > 4) - switch (product[4]) { - case '5': -+ if (strlen(product) > 5) -+ switch (product[5]) { -+ case 'N': -+ year = 2021; -+ break; -+ case '0': -+ year = 2016; -+ break; -+ default: -+ year = 2022; -+ } -+ break; - case '6': - year = 2016; - break; --- -2.34.1 - |