summarylogtreecommitdiffstats
path: root/0007-lg-laptop-Recognize-more-models.patch
diff options
context:
space:
mode:
authorgraysky2021-12-02 13:29:09 -0500
committergraysky2021-12-02 13:29:09 -0500
commitc672fca78fb190f2608710dc1106875479151b35 (patch)
tree55dd3f3545f82e8957c7cde181f42e77fdc4cc05 /0007-lg-laptop-Recognize-more-models.patch
parentae52675a9e2cdfdc66372678a9bf249f86c72ce3 (diff)
downloadaur-c672fca78fb190f2608710dc1106875479151b35.tar.gz
Update to 5.15.6-1
Diffstat (limited to '0007-lg-laptop-Recognize-more-models.patch')
-rw-r--r--0007-lg-laptop-Recognize-more-models.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/0007-lg-laptop-Recognize-more-models.patch b/0007-lg-laptop-Recognize-more-models.patch
deleted file mode 100644
index cb7f97dc84be..000000000000
--- a/0007-lg-laptop-Recognize-more-models.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From d8bbc459909a15bb5ad00b86475011172fab957c 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 7/8] 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
-