Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/rockchip arm/rockchip: Omit needless functions.



details:   https://anonhg.NetBSD.org/src/rev/4a515446ffdb
branches:  trunk
changeset: 374211:4a515446ffdb
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Apr 11 08:40:19 2023 +0000

description:
arm/rockchip: Omit needless functions.

diffstat:

 sys/arch/arm/rockchip/rk_dwhdmi.c |  37 ++-----------------------------------
 1 files changed, 2 insertions(+), 35 deletions(-)

diffs (73 lines):

diff -r 8c805e39ddca -r 4a515446ffdb sys/arch/arm/rockchip/rk_dwhdmi.c
--- a/sys/arch/arm/rockchip/rk_dwhdmi.c Tue Apr 11 06:42:30 2023 +0000
+++ b/sys/arch/arm/rockchip/rk_dwhdmi.c Tue Apr 11 08:40:19 2023 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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



Home | Main Index | Thread Index | Old Index