Module Name: src
Committed By: maxv
Date: Sat Jun 23 06:45:51 UTC 2018
Modified Files:
src/sys/dev/pci: ahd_pci.c auacer.c siside.c
Log Message:
constify
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/pci/ahd_pci.c src/sys/dev/pci/siside.c
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/pci/auacer.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/pci/ahd_pci.c
diff -u src/sys/dev/pci/ahd_pci.c:1.36 src/sys/dev/pci/ahd_pci.c:1.37
--- src/sys/dev/pci/ahd_pci.c:1.36 Mon Jan 15 12:43:42 2018
+++ src/sys/dev/pci/ahd_pci.c Sat Jun 23 06:45:51 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: ahd_pci.c,v 1.36 2018/01/15 12:43:42 maya Exp $ */
+/* $NetBSD: ahd_pci.c,v 1.37 2018/06/23 06:45:51 maxv Exp $ */
/*
* Product specific probe and attach routines for:
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahd_pci.c,v 1.36 2018/01/15 12:43:42 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahd_pci.c,v 1.37 2018/06/23 06:45:51 maxv Exp $");
#define AHD_PCI_IOADDR PCI_MAPREG_START /* I/O Address */
#define AHD_PCI_MEMADDR (PCI_MAPREG_START + 4) /* Mem I/O Address */
@@ -129,7 +129,7 @@ static ahd_device_setup_t ahd_aic7901A_s
static ahd_device_setup_t ahd_aic7902_setup;
static ahd_device_setup_t ahd_aic790X_setup;
-static struct ahd_pci_identity ahd_pci_ident_table [] =
+static const struct ahd_pci_identity ahd_pci_ident_table[] =
{
/* aic7901 based controllers */
{
Index: src/sys/dev/pci/siside.c
diff -u src/sys/dev/pci/siside.c:1.36 src/sys/dev/pci/siside.c:1.37
--- src/sys/dev/pci/siside.c:1.36 Sat May 31 16:25:29 2014
+++ src/sys/dev/pci/siside.c Sat Jun 23 06:45:51 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: siside.c,v 1.36 2014/05/31 16:25:29 christos Exp $ */
+/* $NetBSD: siside.c,v 1.37 2018/06/23 06:45:51 maxv Exp $ */
/*
* Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siside.c,v 1.36 2014/05/31 16:25:29 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siside.c,v 1.37 2018/06/23 06:45:51 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -112,7 +112,7 @@ siside_attach(device_t parent, device_t
}
}
-static struct sis_hostbr_type {
+static const struct sis_hostbr_type {
u_int16_t id;
u_int8_t rev;
u_int8_t udma_mode;
@@ -175,7 +175,7 @@ static struct sis_hostbr_type {
{PCI_PRODUCT_SIS_965, 0x00, 6, "965", SIS_TYPE_133NEW},
};
-static struct sis_hostbr_type *sis_hostbr_type_match;
+static const struct sis_hostbr_type *sis_hostbr_type_match;
static int
sis_hostbr_match(const struct pci_attach_args *pa)
Index: src/sys/dev/pci/auacer.c
diff -u src/sys/dev/pci/auacer.c:1.33 src/sys/dev/pci/auacer.c:1.34
--- src/sys/dev/pci/auacer.c:1.33 Thu Jun 1 02:45:10 2017
+++ src/sys/dev/pci/auacer.c Sat Jun 23 06:45:51 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: auacer.c,v 1.33 2017/06/01 02:45:10 chs Exp $ */
+/* $NetBSD: auacer.c,v 1.34 2018/06/23 06:45:51 maxv Exp $ */
/*-
* Copyright (c) 2004, 2008 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auacer.c,v 1.33 2017/06/01 02:45:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auacer.c,v 1.34 2018/06/23 06:45:51 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -189,7 +189,7 @@ static int auacer_set_rate(struct auacer
static void auacer_reset(struct auacer_softc *sc);
-static struct audio_hw_if auacer_hw_if = {
+static const struct audio_hw_if auacer_hw_if = {
NULL, /* open */
NULL, /* close */
NULL, /* drain */