diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-04-05 23:53:45 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-04-06 00:23:36 +0200 |
commit | 25e9a718c4811dfac493cdd393665d6f362e20d5 (patch) | |
tree | 27d37cb85098b2a2c4097616cd31a77e419deab5 /libre/linux-libre-64/0006-lg-laptop-Recognize-more-models.patch | |
parent | 4a379f82580a32fe460be428762ccc6a2c9f01cd (diff) | |
download | abslibre-25e9a718c4811dfac493cdd393665d6f362e20d5.tar.gz abslibre-25e9a718c4811dfac493cdd393665d6f362e20d5.tar.bz2 abslibre-25e9a718c4811dfac493cdd393665d6f362e20d5.zip |
libre: linux-libre-64: Update to 5.15.12 by syncing with linux-libre
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'libre/linux-libre-64/0006-lg-laptop-Recognize-more-models.patch')
-rw-r--r-- | libre/linux-libre-64/0006-lg-laptop-Recognize-more-models.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libre/linux-libre-64/0006-lg-laptop-Recognize-more-models.patch b/libre/linux-libre-64/0006-lg-laptop-Recognize-more-models.patch new file mode 100644 index 000000000..757465081 --- /dev/null +++ b/libre/linux-libre-64/0006-lg-laptop-Recognize-more-models.patch @@ -0,0 +1,39 @@ +From 9633e4af545533b6738180955a059af8f2bd904f 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/6] 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 + |