drm/bridge: synopsys: Fixes compilation errors when cec core is not compiled

Fix error: implicit declaration of function 'cec_queue_pin_hpd_event'.

Fixes: 5fe797153d ("drm: bridge: dw-hdmi: Support report cec hpd")
Change-Id: I4ddae31d5b72b17fdd33fbc28ca454dc57377f74
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
Algea Cao
2024-01-02 19:16:55 +08:00
committed by Tao Huang
parent 920198cd6c
commit 5a0f616be9

View File

@@ -429,10 +429,12 @@ static void repo_hpd_event(struct work_struct *p_work)
if (change) {
if (hdmi->plat_data->set_ddc_io)
hdmi->plat_data->set_ddc_io(data, hdmi->hpd_state);
#if IS_REACHABLE(CONFIG_DRM_DW_HDMI_CEC)
if (hdmi->cec_adap->devnode.registered)
cec_queue_pin_hpd_event(hdmi->cec_adap,
hdmi->hpd_state,
ktime_get());
#endif
}
drm_bridge_hpd_notify(&hdmi->bridge, status);
}