Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Remove code no longer used.



details:   https://anonhg.NetBSD.org/src/rev/9a54b5ff0242
branches:  trunk
changeset: 951476:9a54b5ff0242
user:      isaki <isaki%NetBSD.org@localhost>
date:      Wed Feb 03 14:44:32 2021 +0000

description:
Remove code no longer used.
The code that used sc->{halt_input,halt_output} function pointer
was removed in 2004. (see cs428x.c rev 1.7)

diffstat:

 sys/dev/pci/cs4280.c |  6 ++----
 sys/dev/pci/cs4281.c |  6 ++----
 sys/dev/pci/cs428x.h |  4 +---
 3 files changed, 5 insertions(+), 11 deletions(-)

diffs (79 lines):

diff -r 763e2391d1d3 -r 9a54b5ff0242 sys/dev/pci/cs4280.c
--- a/sys/dev/pci/cs4280.c      Wed Feb 03 14:33:09 2021 +0000
+++ b/sys/dev/pci/cs4280.c      Wed Feb 03 14:44:32 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cs4280.c,v 1.72 2019/05/08 13:40:18 isaki Exp $        */
+/*     $NetBSD: cs4280.c,v 1.73 2021/02/03 14:44:32 isaki Exp $        */
 
 /*
  * Copyright (c) 1999, 2000 Tatoku Ogaito.  All rights reserved.
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs4280.c,v 1.72 2019/05/08 13:40:18 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs4280.c,v 1.73 2021/02/03 14:44:32 isaki Exp $");
 
 #include "midi.h"
 
@@ -346,8 +346,6 @@
        }
 
        sc->type = TYPE_CS4280;
-       sc->halt_input  = cs4280_halt_input;
-       sc->halt_output = cs4280_halt_output;
 
        /* setup buffer related parameters */
        sc->dma_size     = CS4280_DCHUNK;
diff -r 763e2391d1d3 -r 9a54b5ff0242 sys/dev/pci/cs4281.c
--- a/sys/dev/pci/cs4281.c      Wed Feb 03 14:33:09 2021 +0000
+++ b/sys/dev/pci/cs4281.c      Wed Feb 03 14:44:32 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cs4281.c,v 1.56 2020/05/08 13:52:40 simonb Exp $       */
+/*     $NetBSD: cs4281.c,v 1.57 2021/02/03 14:44:32 isaki Exp $        */
 
 /*
  * Copyright (c) 2000 Tatoku Ogaito.  All rights reserved.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs4281.c,v 1.56 2020/05/08 13:52:40 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs4281.c,v 1.57 2021/02/03 14:44:32 isaki Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -272,8 +272,6 @@
        }
 
        sc->type = TYPE_CS4281;
-       sc->halt_input  = cs4281_halt_input;
-       sc->halt_output = cs4281_halt_output;
 
        sc->dma_size     = CS4281_BUFFER_SIZE / MAX_CHANNELS;
        sc->dma_align    = 0x10;
diff -r 763e2391d1d3 -r 9a54b5ff0242 sys/dev/pci/cs428x.h
--- a/sys/dev/pci/cs428x.h      Wed Feb 03 14:33:09 2021 +0000
+++ b/sys/dev/pci/cs428x.h      Wed Feb 03 14:44:32 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cs428x.h,v 1.17 2019/05/08 13:40:18 isaki Exp $        */
+/*     $NetBSD: cs428x.h,v 1.18 2021/02/03 14:44:32 isaki Exp $        */
 
 /*
  * Copyright (c) 2000 Tatoku Ogaito.  All rights reserved.
@@ -106,7 +106,6 @@
        int     sc_pi;
        struct  cs428x_dma *sc_pdma;
        char    *sc_pbuf;
-       int     (*halt_output)(void *);
        char    sc_prun;                /* playback status */
        int     sc_prate;               /* playback sample rate */
 
@@ -118,7 +117,6 @@
        int     sc_ri;
        struct  cs428x_dma *sc_rdma;
        char    *sc_rbuf;
-       int     (*halt_input)(void *);
        char    sc_rrun;                /* recording status */
        int     sc_rrate;               /* recording sample rate */
 



Home | Main Index | Thread Index | Old Index