Unverified Commit 662c9cb8 authored by Jonas Ringeis's avatar Jonas Ringeis Committed by Ilpo Järvinen
Browse files

platform/x86: lg-laptop: Recognize 2022-2025 models

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: default avatarJonas Ringeis <private@glitchdev.me>
Link: https://patch.msgid.link/20260123225503.493467-1-private@glitchdev.me


Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent 2b4e00d8
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -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: