drm/panel: simple: Remove custom handling of orientation
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 1 Feb 2022 12:24:51 +0000 (12:24 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:18 +0000 (11:33 +0000)
Panel orientation is now handled by the drm_panel and
panel_bridge frameworks, so remove the custom handling.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/panel/panel-simple.c

index f9df34a..8c50251 100644 (file)
@@ -153,8 +153,6 @@ struct panel_simple {
        struct edid *edid;
 
        struct drm_display_mode override_mode;
-
-       enum drm_panel_orientation orientation;
 };
 
 static inline struct panel_simple *to_panel_simple(struct drm_panel *panel)
@@ -411,12 +409,6 @@ static int panel_simple_get_modes(struct drm_panel *panel,
        /* add hard-coded panel modes */
        num += panel_simple_get_non_edid_modes(p, connector);
 
-       /*
-        * TODO: Remove once all drm drivers call
-        * drm_connector_set_orientation_from_panel()
-        */
-       drm_connector_set_panel_orientation(connector, p->orientation);
-
        return num;
 }
 
@@ -578,12 +570,6 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
                return dev_err_probe(dev, PTR_ERR(panel->enable_gpio),
                                     "failed to request GPIO\n");
 
-       err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
-       if (err) {
-               dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
-               return err;
-       }
-
        ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
        if (ddc) {
                panel->ddc = of_find_i2c_adapter_by_node(ddc);