1 From 4c3df24cea00ca3973134f4e542cee1d501c1a88 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Tue, 1 Feb 2022 12:24:51 +0000
4 Subject: [PATCH] drm/panel: simple: Remove custom handling of
7 Panel orientation is now handled by the drm_panel and
8 panel_bridge frameworks, so remove the custom handling.
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 drivers/gpu/drm/panel/panel-simple.c | 11 -----------
13 1 file changed, 11 deletions(-)
15 --- a/drivers/gpu/drm/panel/panel-simple.c
16 +++ b/drivers/gpu/drm/panel/panel-simple.c
17 @@ -195,8 +195,6 @@ struct panel_simple {
20 struct drm_display_mode override_mode;
22 - enum drm_panel_orientation orientation;
25 static inline struct panel_simple *to_panel_simple(struct drm_panel *panel)
26 @@ -533,9 +531,6 @@ static int panel_simple_get_modes(struct
27 /* add hard-coded panel modes */
28 num += panel_simple_get_non_edid_modes(p, connector);
30 - /* set up connector's "panel orientation" property */
31 - drm_connector_set_panel_orientation(connector, p->orientation);
36 @@ -702,12 +697,6 @@ static int panel_simple_probe(struct dev
40 - err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
42 - dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
46 ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
48 panel->ddc = of_find_i2c_adapter_by_node(ddc);