Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi constify



details:   https://anonhg.NetBSD.org/src/rev/bf35835fa80e
branches:  trunk
changeset: 971788:bf35835fa80e
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon May 04 20:06:38 2020 +0000

description:
constify

diffstat:

 sys/dev/acpi/acpi_ec.c     |  6 +++---
 sys/dev/acpi/acpi_quirks.c |  8 ++++----
 sys/dev/acpi/wss_acpi.c    |  8 ++++----
 3 files changed, 11 insertions(+), 11 deletions(-)

diffs (99 lines):

diff -r 17fcd4b1a79b -r bf35835fa80e sys/dev/acpi/acpi_ec.c
--- a/sys/dev/acpi/acpi_ec.c    Mon May 04 18:36:24 2020 +0000
+++ b/sys/dev/acpi/acpi_ec.c    Mon May 04 20:06:38 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_ec.c,v 1.82 2020/04/28 10:04:32 jmcneill Exp $    */
+/*     $NetBSD: acpi_ec.c,v 1.83 2020/05/04 20:06:38 jdolecek Exp $    */
 
 /*-
  * Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.82 2020/04/28 10:04:32 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.83 2020/05/04 20:06:38 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/callout.h>
@@ -101,7 +101,7 @@
 #define        EC_STATUS_SCI           0x20
 #define        EC_STATUS_SMI           0x40
 
-static const char *ec_hid[] = {
+static const char * const ec_hid[] = {
        "PNP0C09",
        NULL,
 };
diff -r 17fcd4b1a79b -r bf35835fa80e sys/dev/acpi/acpi_quirks.c
--- a/sys/dev/acpi/acpi_quirks.c        Mon May 04 18:36:24 2020 +0000
+++ b/sys/dev/acpi/acpi_quirks.c        Mon May 04 20:06:38 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_quirks.c,v 1.20 2011/11/14 02:44:59 jmcneill Exp $ */
+/* $NetBSD: acpi_quirks.c,v 1.21 2020/05/04 20:06:38 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: acpi_quirks.c,v 1.20 2011/11/14 02:44:59 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_quirks.c,v 1.21 2020/05/04 20:06:38 jdolecek Exp $");
 
 #include "opt_acpi.h"
 
@@ -84,7 +84,7 @@
 
 static int acpi_quirks_revcmp(uint32_t, uint32_t, int);
 
-static struct acpi_quirk acpi_quirks[] = {
+static const struct acpi_quirk acpi_quirks[] = {
 
        { ACPI_SIG_FADT, "ASUS  ", 0x30303031, AQ_LTE, "CUV4X-D ",
          ACPI_QUIRK_BROKEN },
@@ -152,7 +152,7 @@
 acpi_find_quirks(void)
 {
        ACPI_TABLE_HEADER fadt, dsdt, xsdt, *hdr;
-       struct acpi_quirk *aq;
+       const struct acpi_quirk *aq;
        ACPI_STATUS rv;
        size_t i, len;
 
diff -r 17fcd4b1a79b -r bf35835fa80e sys/dev/acpi/wss_acpi.c
--- a/sys/dev/acpi/wss_acpi.c   Mon May 04 18:36:24 2020 +0000
+++ b/sys/dev/acpi/wss_acpi.c   Mon May 04 20:06:38 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wss_acpi.c,v 1.32 2019/05/08 13:40:17 isaki Exp $ */
+/* $NetBSD: wss_acpi.c,v 1.33 2020/05/04 20:06:38 jdolecek Exp $ */
 
 /*
  * Copyright (c) 2002 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wss_acpi.c,v 1.32 2019/05/08 13:40:17 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wss_acpi.c,v 1.33 2020/05/04 20:06:38 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/audioio.h>
@@ -59,7 +59,7 @@
        int offset_ad1848;              /* offset from start of DAC region */
 };
 
-static struct wss_acpi_hint wss_acpi_hints[] = {
+static const struct wss_acpi_hint wss_acpi_hints[] = {
        { "NMX2210", 1, 2, WSS_CODEC },
        { "CSC0000", 0, 1, 0 },         /* Dell Latitude CPi */
        { "CSC0100", 0, 1, 0 },         /* CS4610 with CS4236 codec */
@@ -114,7 +114,7 @@
        struct acpi_drq *playdrq, *recdrq;
        struct audio_attach_args arg;
        ACPI_STATUS rv;
-       struct wss_acpi_hint *wah;
+       const struct wss_acpi_hint *wah;
 
        sc->sc_ad1848.sc_ad1848.sc_dev = self;
        wah = &wss_acpi_hints[



Home | Main Index | Thread Index | Old Index