* [PATCH] platform/x86: lg-laptop: Recognize 2022-2025 models
@ 2026-01-23 22:54 Jonas Ringeis
2026-01-26 14:57 ` Ilpo Järvinen
0 siblings, 1 reply; 2+ messages in thread
From: Jonas Ringeis @ 2026-01-23 22:54 UTC (permalink / raw)
To: Matan Ziv-Av, Hans de Goede, Ilpo Järvinen,
platform-driver-x86, linux-kernel
Cc: Jonas Ringeis
The lg-laptop driver uses the DMI to identify the product year.
Currently, the driver recognizes all models released after 2022
incorrectly as 2022.
Update logic to handle model identifiers for years 2022-2025.
Link: https://en.wikipedia.org/w/index.php?title=LG_Gram&oldid=1327931565#Comparison_of_Gram_models
Signed-off-by: Jonas Ringeis <private@glitchdev.me>
---
drivers/platform/x86/lg-laptop.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/platform/x86/lg-laptop.c b/drivers/platform/x86/lg-laptop.c
index f92e89c75db9..61ef7a218a80 100644
--- a/drivers/platform/x86/lg-laptop.c
+++ b/drivers/platform/x86/lg-laptop.c
@@ -838,8 +838,17 @@ static int acpi_add(struct acpi_device *device)
case 'P':
year = 2021;
break;
- default:
+ case 'Q':
year = 2022;
+ break;
+ case 'R':
+ year = 2023;
+ break;
+ case 'S':
+ year = 2024;
+ break;
+ default:
+ year = 2025;
}
break;
default:
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] platform/x86: lg-laptop: Recognize 2022-2025 models
2026-01-23 22:54 [PATCH] platform/x86: lg-laptop: Recognize 2022-2025 models Jonas Ringeis
@ 2026-01-26 14:57 ` Ilpo Järvinen
0 siblings, 0 replies; 2+ messages in thread
From: Ilpo Järvinen @ 2026-01-26 14:57 UTC (permalink / raw)
To: Matan Ziv-Av, Hans de Goede, platform-driver-x86, linux-kernel,
Jonas Ringeis
On Fri, 23 Jan 2026 23:54:23 +0100, Jonas Ringeis wrote:
> The lg-laptop driver uses the DMI to identify the product year.
> Currently, the driver recognizes all models released after 2022
> incorrectly as 2022.
>
> Update logic to handle model identifiers for years 2022-2025.
>
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86: lg-laptop: Recognize 2022-2025 models
commit: 662c9cb86fc322038647d8808e751f5c6c0cc13f
--
i.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-26 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-23 22:54 [PATCH] platform/x86: lg-laptop: Recognize 2022-2025 models Jonas Ringeis
2026-01-26 14:57 ` Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox