All implementations were copies of the code that lives in the panel core now, and none is left.
Assisted-by: LLM Signed-off-by: Dmitry Baryshkov <[email protected]> --- drivers/gpu/drm/drm_connector.c | 9 +++------ include/drm/drm_panel.h | 9 --------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index efcf1ce979a9..f630c9cd7a8e 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -3392,13 +3392,12 @@ EXPORT_SYMBOL(drm_connector_set_panel_orientation_with_quirk); /** * drm_connector_set_orientation_from_panel - - * set the connector's panel_orientation from panel's callback. + * set the connector's panel_orientation from the panel. * @connector: connector for which to init the panel-orientation property. * @panel: panel that can provide orientation information. * * Drm drivers should call this function before drm_dev_register(). - * Orientation is obtained from panel's .get_orientation() callback, falling - * back to &drm_panel.orientation if the panel doesn't implement it. + * Orientation is obtained from &drm_panel.orientation. * * Returns: * Zero on success, negative errno on failure. @@ -3409,9 +3408,7 @@ int drm_connector_set_orientation_from_panel( { enum drm_panel_orientation orientation; - if (panel && panel->funcs && panel->funcs->get_orientation) - orientation = panel->funcs->get_orientation(panel); - else if (panel) + if (panel) orientation = panel->orientation; else orientation = DRM_MODE_PANEL_ORIENTATION_UNKNOWN; diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h index dc4fbeac796b..d643434037d9 100644 --- a/include/drm/drm_panel.h +++ b/include/drm/drm_panel.h @@ -121,15 +121,6 @@ struct drm_panel_funcs { int (*get_modes)(struct drm_panel *panel, struct drm_connector *connector); - /** - * @get_orientation: - * - * Return the panel orientation set by device tree or EDID. - * - * This function is optional. - */ - enum drm_panel_orientation (*get_orientation)(struct drm_panel *panel); - /** * @debugfs_init: * -- 2.47.3
