Module Name: src
Committed By: riastradh
Date: Tue Apr 11 08:40:20 UTC 2023
Modified Files:
src/sys/arch/arm/rockchip: rk_dwhdmi.c
Log Message:
arm/rockchip: Omit needless functions.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/rockchip/rk_dwhdmi.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/arch/arm/rockchip/rk_dwhdmi.c
diff -u src/sys/arch/arm/rockchip/rk_dwhdmi.c:1.7 src/sys/arch/arm/rockchip/rk_dwhdmi.c:1.8
--- src/sys/arch/arm/rockchip/rk_dwhdmi.c:1.7 Sun Dec 19 11:01:10 2021
+++ src/sys/arch/arm/rockchip/rk_dwhdmi.c Tue Apr 11 08:40:19 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_dwhdmi.c,v 1.7 2021/12/19 11:01:10 riastradh Exp $ */
+/* $NetBSD: rk_dwhdmi.c,v 1.8 2023/04/11 08:40:19 riastradh Exp $ */
/*-
* Copyright (c) 2019 Jared D. McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rk_dwhdmi.c,v 1.7 2021/12/19 11:01:10 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_dwhdmi.c,v 1.8 2023/04/11 08:40:19 riastradh Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -106,54 +106,21 @@ rk_dwhdmi_select_input(struct rk_dwhdmi_
syscon_unlock(sc->sc_grf);
}
-static bool
-rk_dwhdmi_encoder_mode_fixup(struct drm_encoder *encoder,
- const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode)
-{
- return true;
-}
-
-static void
-rk_dwhdmi_encoder_mode_set(struct drm_encoder *encoder,
- struct drm_display_mode *mode, struct drm_display_mode *adjusted)
-{
-}
-
static void
rk_dwhdmi_encoder_enable(struct drm_encoder *encoder)
{
-}
-
-static void
-rk_dwhdmi_encoder_disable(struct drm_encoder *encoder)
-{
-}
-
-static void
-rk_dwhdmi_encoder_prepare(struct drm_encoder *encoder)
-{
struct rk_dwhdmi_softc * const sc = to_rk_dwhdmi_encoder(encoder);
const u_int crtc_index = drm_crtc_index(encoder->crtc);
rk_dwhdmi_select_input(sc, crtc_index);
}
-static void
-rk_dwhdmi_encoder_commit(struct drm_encoder *encoder)
-{
-}
-
static const struct drm_encoder_funcs rk_dwhdmi_encoder_funcs = {
.destroy = drm_encoder_cleanup,
};
static const struct drm_encoder_helper_funcs rk_dwhdmi_encoder_helper_funcs = {
- .prepare = rk_dwhdmi_encoder_prepare,
- .mode_fixup = rk_dwhdmi_encoder_mode_fixup,
- .mode_set = rk_dwhdmi_encoder_mode_set,
.enable = rk_dwhdmi_encoder_enable,
- .disable = rk_dwhdmi_encoder_disable,
- .commit = rk_dwhdmi_encoder_commit,
};
static int