Skip to content

Commit 48d5e83

Browse files
MatanZjwrdegoede
authored andcommitted
platform/x86: 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> Link: https://lore.kernel.org/r/c752b3b2-9718-bd9a-732d-e165aa8a1fca@svgalib.org Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent be892e9 commit 48d5e83

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

drivers/platform/x86/lg-laptop.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,18 @@ static int acpi_add(struct acpi_device *device)
657657
if (product && strlen(product) > 4)
658658
switch (product[4]) {
659659
case '5':
660+
if (strlen(product) > 5)
661+
switch (product[5]) {
662+
case 'N':
663+
year = 2021;
664+
break;
665+
case '0':
666+
year = 2016;
667+
break;
668+
default:
669+
year = 2022;
670+
}
671+
break;
660672
case '6':
661673
year = 2016;
662674
break;

0 commit comments

Comments
 (0)