[PATCH] drm: panel-orientation-quirks: Cover IdeaPad Duet 3 10IGL5-LTE

Marius Hoch posted 1 patch 1 week ago
drivers/gpu/drm/drm_panel_orientation_quirks.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
[PATCH] drm: panel-orientation-quirks: Cover IdeaPad Duet 3 10IGL5-LTE
Posted by Marius Hoch 1 week ago
The LTE enabled version of the IdeaPad Duet 3 10IGL5 needs the
same quirk as the non-LTE version. As these are the only two
IdeaPad Duet 3 10IGL5 versions, we can safely use non exact matching.

Tested on an IdeaPad Duet 3 10IGL5-LTE.

Signed-off-by: Marius Hoch <mail@mariushoch.de>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 3a218fb592ce..b62f19af4642 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -415,10 +415,11 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGL"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
-	}, {	/* Lenovo IdeaPad Duet 3 10IGL5 */
+	}, {	/* Lenovo IdeaPad Duet 3 10IGL5 and 10IGL5-LTE */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "IdeaPad Duet 3 10IGL5"),
+		  /* Non exact match to also match the LTE version */
+		  DMI_MATCH(DMI_PRODUCT_VERSION, "IdeaPad Duet 3 10IGL5"),
 		},
 		.driver_data = (void *)&lcd1200x1920_rightside_up,
 	}, {	/* Lenovo Legion Go 8APU1 */
-- 
2.54.0