Skip to content

Commit 662c9cb

Browse files
GlitchDevXij-intel
authored andcommitted
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: Jonas Ringeis <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 2b4e00d commit 662c9cb

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

drivers/platform/x86/lg-laptop.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,17 @@ static int acpi_add(struct acpi_device *device)
838838
case 'P':
839839
year = 2021;
840840
break;
841-
default:
841+
case 'Q':
842842
year = 2022;
843+
break;
844+
case 'R':
845+
year = 2023;
846+
break;
847+
case 'S':
848+
year = 2024;
849+
break;
850+
default:
851+
year = 2025;
843852
}
844853
break;
845854
default:

0 commit comments

Comments
 (0)