[Librem-5-dev] [PATCH 05/12] hdp: Drop imx_hdp_set_property

Guido Günther agx at sigxcpu.org
Mon Oct 29 04:47:47 PDT 2018


set_property got removed from drm and we're not interested in hdr
properties atm.

See 482b0e3c2fd73b5c27a4459638b682147ce8119e

Signed-off-by: Guido Günther <guido.gunther at puri.sm>
---
 drivers/gpu/drm/imx/hdp/imx-hdp.c | 38 -------------------------------
 1 file changed, 38 deletions(-)

diff --git a/drivers/gpu/drm/imx/hdp/imx-hdp.c b/drivers/gpu/drm/imx/hdp/imx-hdp.c
index 794d36a1838a..d89d0bcdd546 100644
--- a/drivers/gpu/drm/imx/hdp/imx-hdp.c
+++ b/drivers/gpu/drm/imx/hdp/imx-hdp.c
@@ -656,43 +656,6 @@ static void imx_hdp_connector_force(struct drm_connector *connector)
 	mutex_unlock(&hdp->mutex);
 }
 
-static int imx_hdp_set_property(struct drm_connector *connector,
-				struct drm_property *property, uint64_t val)
-{
-	struct imx_hdp *hdp = container_of(connector, struct imx_hdp,
-					   connector);
-	int ret;
-	struct drm_connector_state *conn_state;
-	union hdmi_infoframe frame;
-	struct hdr_static_metadata *hdr_metadata;
-
-	ret = drm_atomic_helper_connector_set_property(connector,
-						       property, val);
-	if (ret < 0)
-		return ret;
-
-	conn_state = connector->state;
-
-	if (conn_state->hdr_source_metadata_blob_ptr &&
-	    conn_state->hdr_source_metadata_blob_ptr->length &&
-	    hdp->ops->write_hdr_metadata) {
-		hdr_metadata = (struct hdr_static_metadata *)
-				conn_state->hdr_source_metadata_blob_ptr->data;
-
-		ret = drm_hdmi_infoframe_set_hdr_metadata(&frame.drm,
-							  hdr_metadata);
-
-		if (ret < 0) {
-			DRM_ERROR("could not set HDR metadata in infoframe\n");
-			return ret;
-		}
-
-		hdp->ops->write_hdr_metadata(&hdp->state, &frame);
-	}
-
-	return 0;
-}
-
 static const struct drm_connector_funcs imx_hdp_connector_funcs = {
 	.dpms = drm_atomic_helper_connector_dpms,
 	.fill_modes = drm_helper_probe_single_connector_modes,
@@ -702,7 +665,6 @@ static const struct drm_connector_funcs imx_hdp_connector_funcs = {
 	.reset = drm_atomic_helper_connector_reset,
 	.atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
 	.atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
-	.set_property = imx_hdp_set_property,
 };
 
 static const struct drm_connector_helper_funcs imx_hdp_connector_helper_funcs = {
-- 
2.19.0



More information about the Librem-5-dev mailing list