Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/audio const-ify. These arguments are no longer writ...



details:   https://anonhg.NetBSD.org/src/rev/db758377ed06
branches:  trunk
changeset: 745045:db758377ed06
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Feb 22 06:28:10 2020 +0000

description:
const-ify.  These arguments are no longer written back.

diffstat:

 sys/dev/audio/audio.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 0c85e7ed6edf -r db758377ed06 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Sat Feb 22 06:22:46 2020 +0000
+++ b/sys/dev/audio/audio.c     Sat Feb 22 06:28:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.44 2020/02/22 06:22:46 isaki Exp $ */
+/*     $NetBSD: audio.c,v 1.45 2020/02/22 06:28:10 isaki Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.44 2020/02/22 06:22:46 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.45 2020/02/22 06:28:10 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -547,7 +547,7 @@
 static int audio_hw_setinfo(struct audio_softc *, const struct audio_info *,
        struct audio_info *);
 static int audio_hw_set_format(struct audio_softc *, int,
-       audio_format2_t *, audio_format2_t *,
+       const audio_format2_t *, const audio_format2_t *,
        audio_filter_reg_t *, audio_filter_reg_t *);
 static int audiogetinfo(struct audio_softc *, struct audio_info *, int,
        audio_file_t *);
@@ -6993,7 +6993,6 @@
  *   parameters.
  * - pfil and rfil must be zero-filled.
  * If successful,
- * - phwfmt, rhwfmt will be overwritten by hardware format.
  * - pfil, rfil will be filled with filter information specified by the
  *   hardware driver.
  * and then returns 0.  Otherwise returns errno.
@@ -7001,7 +7000,7 @@
  */
 static int
 audio_hw_set_format(struct audio_softc *sc, int setmode,
-       audio_format2_t *phwfmt, audio_format2_t *rhwfmt,
+       const audio_format2_t *phwfmt, const audio_format2_t *rhwfmt,
        audio_filter_reg_t *pfil, audio_filter_reg_t *rfil)
 {
        audio_params_t pp, rp;



Home | Main Index | Thread Index | Old Index