drm: panel-orientation-quirks: Add quirk for Acer Switch V 10 (SW5-017)
authorHans de Goede <hdegoede@redhat.com>
Sun, 6 Nov 2022 21:50:52 +0000 (22:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Dec 2022 16:41:02 +0000 (17:41 +0100)
[ Upstream commit 653f2d94fcda200b02bd79cea2e0307b26c1b747 ]

Like the Acer Switch One 10 S1003, for which there already is a quirk,
the Acer Switch V 10 (SW5-017) has a 800x1280 portrait screen mounted
in the tablet part of a landscape oriented 2-in-1. Add a quirk for this.

Cc: Rudolf Polzer <rpolzer@google.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Ser <contact@emersion.fr>
Link: https://patchwork.freedesktop.org/patch/msgid/20221106215052.66995-1-hdegoede@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_panel_orientation_quirks.c

index 083273736c837d30a225472bd670b72d9a620bd3..ca0fefeaab20b22504987bcd78c1ef9176976469 100644 (file)
@@ -128,6 +128,12 @@ static const struct dmi_system_id orientation_data[] = {
                  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
                },
                .driver_data = (void *)&lcd800x1280_rightside_up,
+       }, {    /* Acer Switch V 10 (SW5-017) */
+               .matches = {
+                 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"),
+                 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "SW5-017"),
+               },
+               .driver_data = (void *)&lcd800x1280_rightside_up,
        }, {    /* Anbernic Win600 */
                .matches = {
                  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Anbernic"),