Skip to content

Commit cf96c20

Browse files
committed
drm/panel: simple: Remove custom handling of orientation
Panel orientation is now handled by the drm_panel and panel_bridge frameworks, so remove the custom handling. Signed-off-by: Dave Stevenson <[email protected]>
1 parent 843ca41 commit cf96c20

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/gpu/drm/panel/panel-simple.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ struct panel_simple {
112112
struct gpio_desc *hpd_gpio;
113113

114114
struct drm_display_mode override_mode;
115-
116-
enum drm_panel_orientation orientation;
117115
};
118116

119117
static inline struct panel_simple *to_panel_simple(struct drm_panel *panel)
@@ -373,9 +371,6 @@ static int panel_simple_get_modes(struct drm_panel *panel,
373371
/* add hard-coded panel modes */
374372
num += panel_simple_get_non_edid_modes(p, connector);
375373

376-
/* set up connector's "panel orientation" property */
377-
drm_connector_set_panel_orientation(connector, p->orientation);
378-
379374
return num;
380375
}
381376

@@ -540,12 +535,6 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
540535
return err;
541536
}
542537

543-
err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
544-
if (err) {
545-
dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
546-
return err;
547-
}
548-
549538
ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
550539
if (ddc) {
551540
panel->ddc = of_find_i2c_adapter_by_node(ddc);

0 commit comments

Comments
 (0)