Skip to content

Commit a05caf9

Browse files
committed
drm: panel-orientation-quirks: Use generic orientation-data for Acer S1003
The Acer S1003 has proper DMI strings for sys-vendor and product-name, so we do not need to match by BIOS-date. This means that the Acer S1003 can use the generic lcd800x1280_rightside_up drm_dmi_panel_orientation_data struct which is also used by other quirks. Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 6c22bc1 commit a05caf9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/gpu/drm/drm_panel_orientation_quirks.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ struct drm_dmi_panel_orientation_data {
3030
int orientation;
3131
};
3232

33-
static const struct drm_dmi_panel_orientation_data acer_s1003 = {
34-
.width = 800,
35-
.height = 1280,
36-
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
37-
};
38-
3933
static const struct drm_dmi_panel_orientation_data asus_t100ha = {
4034
.width = 800,
4135
.height = 1280,
@@ -114,7 +108,7 @@ static const struct dmi_system_id orientation_data[] = {
114108
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Acer"),
115109
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
116110
},
117-
.driver_data = (void *)&acer_s1003,
111+
.driver_data = (void *)&lcd800x1280_rightside_up,
118112
}, { /* Asus T100HA */
119113
.matches = {
120114
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),

0 commit comments

Comments
 (0)