Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ofisa Since we're using designated initialisers for ...



details:   https://anonhg.NetBSD.org/src/rev/9394ab951fea
branches:  trunk
changeset: 950346:9394ab951fea
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jan 25 16:21:41 2021 +0000

description:
Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.

diffstat:

 sys/dev/ofisa/atppc_ofisa.c |  6 +++---
 sys/dev/ofisa/com_ofisa.c   |  6 +++---
 sys/dev/ofisa/ess_ofisa.c   |  6 +++---
 sys/dev/ofisa/if_cs_ofisa.c |  6 +++---
 sys/dev/ofisa/joy_ofisa.c   |  6 +++---
 sys/dev/ofisa/lpt_ofisa.c   |  6 +++---
 sys/dev/ofisa/ofisa.c       |  6 +++---
 sys/dev/ofisa/pckbc_ofisa.c |  8 ++++----
 sys/dev/ofisa/sb_ofisa.c    |  6 +++---
 sys/dev/ofisa/wdc_ofisa.c   |  6 +++---
 10 files changed, 31 insertions(+), 31 deletions(-)

diffs (277 lines):

diff -r 5b5dc53da228 -r 9394ab951fea sys/dev/ofisa/atppc_ofisa.c
--- a/sys/dev/ofisa/atppc_ofisa.c       Mon Jan 25 14:20:37 2021 +0000
+++ b/sys/dev/ofisa/atppc_ofisa.c       Mon Jan 25 16:21:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atppc_ofisa.c,v 1.11 2021/01/19 14:39:20 thorpej Exp $ */
+/* $NetBSD: atppc_ofisa.c,v 1.12 2021/01/25 16:21:41 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atppc_ofisa.c,v 1.11 2021/01/19 14:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atppc_ofisa.c,v 1.12 2021/01/25 16:21:41 thorpej Exp $");
 
 #include "opt_atppc.h"
 
@@ -76,7 +76,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "pnpPNP,401" },
-       { 0 }
+       { }
 };
 
 /*
diff -r 5b5dc53da228 -r 9394ab951fea sys/dev/ofisa/com_ofisa.c
--- a/sys/dev/ofisa/com_ofisa.c Mon Jan 25 14:20:37 2021 +0000
+++ b/sys/dev/ofisa/com_ofisa.c Mon Jan 25 16:21:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: com_ofisa.c,v 1.17 2021/01/19 14:39:20 thorpej Exp $   */
+/*     $NetBSD: com_ofisa.c,v 1.18 2021/01/25 16:21:41 thorpej Exp $   */
 
 /*
  * Copyright 1997, 1998
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com_ofisa.c,v 1.17 2021/01/19 14:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com_ofisa.c,v 1.18 2021/01/25 16:21:41 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -70,7 +70,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "pnpPNP,501" },
-       { 0 }
+       { }
 };
 
 int
diff -r 5b5dc53da228 -r 9394ab951fea sys/dev/ofisa/ess_ofisa.c
--- a/sys/dev/ofisa/ess_ofisa.c Mon Jan 25 14:20:37 2021 +0000
+++ b/sys/dev/ofisa/ess_ofisa.c Mon Jan 25 16:21:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ess_ofisa.c,v 1.29 2021/01/19 14:39:20 thorpej Exp $   */
+/*     $NetBSD: ess_ofisa.c,v 1.30 2021/01/25 16:21:41 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ess_ofisa.c,v 1.29 2021/01/19 14:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ess_ofisa.c,v 1.30 2021/01/25 16:21:41 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -60,7 +60,7 @@
        { .compat = "ESST,es1887-codec" },      /* ESS 1887 */
        { .compat = "ESST,es1888-codec" },      /* ESS 1888 */
        { .compat = "ESST,es888-codec" },       /* ESS 888 */
-       { 0 }
+       { }
 };
 
 int
diff -r 5b5dc53da228 -r 9394ab951fea sys/dev/ofisa/if_cs_ofisa.c
--- a/sys/dev/ofisa/if_cs_ofisa.c       Mon Jan 25 14:20:37 2021 +0000
+++ b/sys/dev/ofisa/if_cs_ofisa.c       Mon Jan 25 16:21:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_cs_ofisa.c,v 1.28 2021/01/19 14:39:20 thorpej Exp $ */
+/*     $NetBSD: if_cs_ofisa.c,v 1.29 2021/01/25 16:21:41 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cs_ofisa.c,v 1.28 2021/01/19 14:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cs_ofisa.c,v 1.29 2021/01/25 16:21:41 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -70,7 +70,7 @@
        { .compat = "CRUS,CS8900" },
        /* XXX CS8920, CS8920M? */
        /* XXX PNP names? */
-       { 0 }
+       { }
 };
 
 int
diff -r 5b5dc53da228 -r 9394ab951fea sys/dev/ofisa/joy_ofisa.c
--- a/sys/dev/ofisa/joy_ofisa.c Mon Jan 25 14:20:37 2021 +0000
+++ b/sys/dev/ofisa/joy_ofisa.c Mon Jan 25 16:21:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: joy_ofisa.c,v 1.17 2021/01/19 14:39:20 thorpej Exp $   */
+/*     $NetBSD: joy_ofisa.c,v 1.18 2021/01/25 16:21:41 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1996, 1998, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: joy_ofisa.c,v 1.17 2021/01/19 14:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: joy_ofisa.c,v 1.18 2021/01/25 16:21:41 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -60,7 +60,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "pnpPNP,b02f" },    /* generic joystick */
-       { 0 }
+       { }
 };
 
 static int
diff -r 5b5dc53da228 -r 9394ab951fea sys/dev/ofisa/lpt_ofisa.c
--- a/sys/dev/ofisa/lpt_ofisa.c Mon Jan 25 14:20:37 2021 +0000
+++ b/sys/dev/ofisa/lpt_ofisa.c Mon Jan 25 16:21:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lpt_ofisa.c,v 1.16 2021/01/19 14:39:20 thorpej Exp $   */
+/*     $NetBSD: lpt_ofisa.c,v 1.17 2021/01/25 16:21:41 thorpej Exp $   */
 
 /*
  * Copyright 1997, 1998
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lpt_ofisa.c,v 1.16 2021/01/19 14:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lpt_ofisa.c,v 1.17 2021/01/25 16:21:41 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -70,7 +70,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "pnpPNP,401" },
-       { 0 }
+       { }
 };
 
 int
diff -r 5b5dc53da228 -r 9394ab951fea sys/dev/ofisa/ofisa.c
--- a/sys/dev/ofisa/ofisa.c     Mon Jan 25 14:20:37 2021 +0000
+++ b/sys/dev/ofisa/ofisa.c     Mon Jan 25 16:21:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofisa.c,v 1.27 2021/01/19 14:39:20 thorpej Exp $       */
+/*     $NetBSD: ofisa.c,v 1.28 2021/01/25 16:21:41 thorpej Exp $       */
 
 /*
  * Copyright 1997, 1998
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofisa.c,v 1.27 2021/01/19 14:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofisa.c,v 1.28 2021/01/25 16:21:41 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -77,7 +77,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "pnpPNP,a00" },
-       { 0 }
+       { }
 };
 
 int
diff -r 5b5dc53da228 -r 9394ab951fea sys/dev/ofisa/pckbc_ofisa.c
--- a/sys/dev/ofisa/pckbc_ofisa.c       Mon Jan 25 14:20:37 2021 +0000
+++ b/sys/dev/ofisa/pckbc_ofisa.c       Mon Jan 25 16:21:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pckbc_ofisa.c,v 1.16 2021/01/19 14:35:30 thorpej Exp $ */
+/* $NetBSD: pckbc_ofisa.c,v 1.17 2021/01/25 16:21:41 thorpej Exp $ */
 
 /*
  * Copyright (c) 1998
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pckbc_ofisa.c,v 1.16 2021/01/19 14:35:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pckbc_ofisa.c,v 1.17 2021/01/25 16:21:41 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -66,13 +66,13 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "INTC,80c42" },
-       { 0 }
+       { }
 };
 
 static const struct device_compatible_entry port_compat_data[] = {
        { .compat = "pnpPNP,303",       .value = PCKBC_KBD_SLOT },
        { .compat = "pnpPNP,f03",       .value = PCKBC_AUX_SLOT },
-       { 0 }
+       { }
 };
 
 static int
diff -r 5b5dc53da228 -r 9394ab951fea sys/dev/ofisa/sb_ofisa.c
--- a/sys/dev/ofisa/sb_ofisa.c  Mon Jan 25 14:20:37 2021 +0000
+++ b/sys/dev/ofisa/sb_ofisa.c  Mon Jan 25 16:21:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sb_ofisa.c,v 1.20 2021/01/19 14:39:20 thorpej Exp $    */
+/*     $NetBSD: sb_ofisa.c,v 1.21 2021/01/25 16:21:41 thorpej Exp $    */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sb_ofisa.c,v 1.20 2021/01/19 14:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sb_ofisa.c,v 1.21 2021/01/25 16:21:41 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -63,7 +63,7 @@
        { .compat = "pnpPNP,b001" },    /* generic SB 2.0 */
        { .compat = "pnpPNP,b002" },    /* generic SB Pro */
        { .compat = "pnpPNP,b003" },    /* generic SB 16 */
-       { 0 }
+       { }
 };
 
 int
diff -r 5b5dc53da228 -r 9394ab951fea sys/dev/ofisa/wdc_ofisa.c
--- a/sys/dev/ofisa/wdc_ofisa.c Mon Jan 25 14:20:37 2021 +0000
+++ b/sys/dev/ofisa/wdc_ofisa.c Mon Jan 25 16:21:41 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc_ofisa.c,v 1.37 2021/01/19 14:39:20 thorpej Exp $   */
+/*     $NetBSD: wdc_ofisa.c,v 1.38 2021/01/25 16:21:41 thorpej Exp $   */
 
 /*
  * Copyright 1997, 1998
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc_ofisa.c,v 1.37 2021/01/19 14:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc_ofisa.c,v 1.38 2021/01/25 16:21:41 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -73,7 +73,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "pnpPNP,600" },
-       { 0 }
+       { }
 };
 
 static int



Home | Main Index | Thread Index | Old Index