Module Name: src
Committed By: tnn
Date: Fri Mar 25 23:16:04 UTC 2022
Modified Files:
src/sys/dev/ic: dw_hdmi.c
Log Message:
dwhdmi: properly initialize connector atomic helper funcs (PR port-evbarm/56766)
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/ic/dw_hdmi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/dw_hdmi.c
diff -u src/sys/dev/ic/dw_hdmi.c:1.9 src/sys/dev/ic/dw_hdmi.c:1.10
--- src/sys/dev/ic/dw_hdmi.c:1.9 Sun Dec 19 11:01:11 2021
+++ src/sys/dev/ic/dw_hdmi.c Fri Mar 25 23:16:04 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: dw_hdmi.c,v 1.9 2021/12/19 11:01:11 riastradh Exp $ */
+/* $NetBSD: dw_hdmi.c,v 1.10 2022/03/25 23:16:04 tnn Exp $ */
/*-
* Copyright (c) 2019 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dw_hdmi.c,v 1.9 2021/12/19 11:01:11 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dw_hdmi.c,v 1.10 2022/03/25 23:16:04 tnn Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -47,6 +47,7 @@ __KERNEL_RCSID(0, "$NetBSD: dw_hdmi.c,v
#include <dev/audio/audio_dai.h>
+#include <drm/drm_atomic_state_helper.h>
#include <drm/drm_crtc.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_drv.h>
@@ -570,6 +571,9 @@ static const struct drm_connector_funcs
.detect = dwhdmi_connector_detect,
.fill_modes = drm_helper_probe_single_connector_modes,
.destroy = dwhdmi_connector_destroy,
+ .reset = drm_atomic_helper_connector_reset,
+ .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
+ .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
};
static int