179f54888017968fd7728fc5fe7d19e2a916a4c8
[openwrt/staging/blocktrron.git] /
1 From 948df06ed7f7a44da737aadcb8e9b2b6c1c35dbf 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
5 orientation
6
7 Panel orientation is now handled by the drm_panel and
8 panel_bridge frameworks, so remove the custom handling.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 drivers/gpu/drm/panel/panel-simple.c | 14 --------------
13 1 file changed, 14 deletions(-)
14
15 --- a/drivers/gpu/drm/panel/panel-simple.c
16 +++ b/drivers/gpu/drm/panel/panel-simple.c
17 @@ -154,8 +154,6 @@ struct panel_simple {
18 struct edid *edid;
19
20 struct drm_display_mode override_mode;
21 -
22 - enum drm_panel_orientation orientation;
23 };
24
25 static inline struct panel_simple *to_panel_simple(struct drm_panel *panel)
26 @@ -414,12 +412,6 @@ static int panel_simple_get_modes(struct
27 /* add hard-coded panel modes */
28 num += panel_simple_get_non_edid_modes(p, connector);
29
30 - /*
31 - * TODO: Remove once all drm drivers call
32 - * drm_connector_set_orientation_from_panel()
33 - */
34 - drm_connector_set_panel_orientation(connector, p->orientation);
35 -
36 return num;
37 }
38
39 @@ -582,12 +574,6 @@ static int panel_simple_probe(struct dev
40 return dev_err_probe(dev, PTR_ERR(panel->enable_gpio),
41 "failed to request GPIO\n");
42
43 - err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
44 - if (err) {
45 - dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
46 - return err;
47 - }
48 -
49 ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
50 if (ddc) {
51 panel->ddc = of_find_i2c_adapter_by_node(ddc);