Commit f7d4d878 authored by Guido Gunther's avatar Guido Gunther

hdp: Drop imx_hdp_set_property

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

See 482b0e3cSigned-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 5f06e82b
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment