Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/b95b586bf39f
branches:  trunk
changeset: 1018197:b95b586bf39f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jan 25 13:30:20 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/i2c/ac100.c        |  7 +++----
 sys/dev/i2c/adadc.c        |  7 +++----
 sys/dev/i2c/adm1021.c      |  7 +++----
 sys/dev/i2c/adm1026.c      |  5 ++---
 sys/dev/i2c/anxedp.c       |  7 +++----
 sys/dev/i2c/as3722.c       |  7 +++----
 sys/dev/i2c/asms.c         |  7 +++----
 sys/dev/i2c/at24cxx.c      |  7 +++----
 sys/dev/i2c/axp20x.c       |  7 +++----
 sys/dev/i2c/axp22x.c       |  7 +++----
 sys/dev/i2c/axppmic.c      |  7 +++----
 sys/dev/i2c/cwfg.c         |  7 +++----
 sys/dev/i2c/dbcool.c       |  7 +++----
 sys/dev/i2c/ds1307.c       |  6 +++---
 sys/dev/i2c/dstemp.c       |  7 +++----
 sys/dev/i2c/em3027.c       |  7 +++----
 sys/dev/i2c/es8316ac.c     |  7 +++----
 sys/dev/i2c/fan53555.c     |  7 +++----
 sys/dev/i2c/fcu.c          |  7 +++----
 sys/dev/i2c/hytp14.c       |  5 ++---
 sys/dev/i2c/ihidev.c       |  9 +++++----
 sys/dev/i2c/lm75.c         |  6 +++---
 sys/dev/i2c/lm87.c         |  7 +++----
 sys/dev/i2c/m41st84.c      |  7 +++----
 sys/dev/i2c/max77620.c     |  7 +++----
 sys/dev/i2c/pca9685.c      |  7 +++----
 sys/dev/i2c/pcagpio.c      |  7 +++----
 sys/dev/i2c/pcf8563.c      |  7 +++----
 sys/dev/i2c/pcf8574.c      |  7 +++----
 sys/dev/i2c/rkpmic.c       |  7 +++----
 sys/dev/i2c/spdmem_i2c.c   |  7 +++----
 sys/dev/i2c/ssdfb_i2c.c    |  7 +++----
 sys/dev/i2c/sy8106a.c      |  7 +++----
 sys/dev/i2c/tcagpio.c      |  7 +++----
 sys/dev/i2c/tcakp.c        |  7 +++----
 sys/dev/i2c/tda19988.c     |  7 +++----
 sys/dev/i2c/titemp.c       |  7 +++----
 sys/dev/i2c/tps65217pmic.c |  7 +++----
 38 files changed, 114 insertions(+), 148 deletions(-)

diffs (truncated from 1053 to 300 lines):

diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/ac100.c
--- a/sys/dev/i2c/ac100.c       Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/ac100.c       Mon Jan 25 13:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ac100.c,v 1.5 2021/01/17 21:42:35 thorpej Exp $ */
+/* $NetBSD: ac100.c,v 1.6 2021/01/25 13:30:20 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_fdt.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ac100.c,v 1.5 2021/01/17 21:42:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ac100.c,v 1.6 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -94,8 +94,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "x-powers,ac100" },
-
-       { 0 }
+       { }
 };
 
 struct ac100_softc {
diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/adadc.c
--- a/sys/dev/i2c/adadc.c       Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/adadc.c       Mon Jan 25 13:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adadc.c,v 1.8 2021/01/17 21:42:35 thorpej Exp $ */
+/* $NetBSD: adadc.c,v 1.9 2021/01/25 13:30:20 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2018 Michael Lorenz
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adadc.c,v 1.8 2021/01/17 21:42:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adadc.c,v 1.9 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -95,8 +95,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "ad7417" },
-
-       { 0 }
+       { }
 };
 
 /* calibaration table from Darwin via Linux */
diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/adm1021.c
--- a/sys/dev/i2c/adm1021.c     Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/adm1021.c     Mon Jan 25 13:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adm1021.c,v 1.23 2021/01/24 05:30:05 rin Exp $ */
+/*     $NetBSD: adm1021.c,v 1.24 2021/01/25 13:30:20 thorpej Exp $ */
 /*     $OpenBSD: adm1021.c,v 1.27 2007/06/24 05:34:35 dlg Exp $        */
 
 /*
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adm1021.c,v 1.23 2021/01/24 05:30:05 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adm1021.c,v 1.24 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -148,8 +148,7 @@
        { .compat = "i2c-max1617" },
        { .compat = "max6642" },
        { .compat = "max6690" },
-
-       { 0 }
+       { }
 };
 
 int
diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/adm1026.c
--- a/sys/dev/i2c/adm1026.c     Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/adm1026.c     Mon Jan 25 13:30:20 2021 +0000
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adm1026.c,v 1.9 2021/01/17 21:42:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adm1026.c,v 1.10 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -130,8 +130,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "i2c-adm1026" },
-
-       { 0 }
+       { }
 };
 
 static int
diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/anxedp.c
--- a/sys/dev/i2c/anxedp.c      Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/anxedp.c      Mon Jan 25 13:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: anxedp.c,v 1.4 2021/01/17 21:42:35 thorpej Exp $ */
+/* $NetBSD: anxedp.c,v 1.5 2021/01/25 13:30:20 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2019 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: anxedp.c,v 1.4 2021/01/17 21:42:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: anxedp.c,v 1.5 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -69,8 +69,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "analogix,anx6345" },
-
-       { 0 }
+       { }
 };
 
 struct anxedp_softc;
diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/as3722.c
--- a/sys/dev/i2c/as3722.c      Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/as3722.c      Mon Jan 25 13:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: as3722.c,v 1.20 2021/01/17 21:42:35 thorpej Exp $ */
+/* $NetBSD: as3722.c,v 1.21 2021/01/25 13:30:20 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_fdt.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: as3722.c,v 1.20 2021/01/17 21:42:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: as3722.c,v 1.21 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -224,8 +224,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "ams,as3722" },
-
-       { 0 }
+       { }
 };
 
 static int
diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/asms.c
--- a/sys/dev/i2c/asms.c        Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/asms.c        Mon Jan 25 13:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asms.c,v 1.2 2021/01/17 21:42:35 thorpej Exp $ */
+/* $NetBSD: asms.c,v 1.3 2021/01/25 13:30:20 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2020 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: asms.c,v 1.2 2021/01/17 21:42:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: asms.c,v 1.3 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -60,8 +60,7 @@
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "accelerometer" },
        { .compat = "AAPL,accelerometer_1" },
-
-       { 0 }
+       { }
 };
 
 /* ASMS Registers, from OpenBSD */
diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/at24cxx.c
--- a/sys/dev/i2c/at24cxx.c     Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/at24cxx.c     Mon Jan 25 13:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: at24cxx.c,v 1.38 2021/01/18 15:28:21 thorpej Exp $     */
+/*     $NetBSD: at24cxx.c,v 1.39 2021/01/25 13:30:20 thorpej Exp $     */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at24cxx.c,v 1.38 2021/01/18 15:28:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at24cxx.c,v 1.39 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -126,8 +126,7 @@
        { .compat = "atmel,24c02",              .value = 256 },
        { .compat = "atmel,24c16",              .value = 2048 },
        { .compat = "atmel,24c256",             .value = 32768 },
-
-       { 0 }
+       { }
 };
 
 static int
diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/axp20x.c
--- a/sys/dev/i2c/axp20x.c      Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/axp20x.c      Mon Jan 25 13:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: axp20x.c,v 1.17 2021/01/17 21:42:35 thorpej Exp $ */
+/* $NetBSD: axp20x.c,v 1.18 2021/01/25 13:30:20 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2014-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: axp20x.c,v 1.17 2021/01/17 21:42:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: axp20x.c,v 1.18 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -212,8 +212,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "x-powers,axp209" },
-
-       { 0 }
+       { }
 };
 
 static int
diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/axp22x.c
--- a/sys/dev/i2c/axp22x.c      Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/axp22x.c      Mon Jan 25 13:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: axp22x.c,v 1.7 2021/01/17 21:42:35 thorpej Exp $ */
+/* $NetBSD: axp22x.c,v 1.8 2021/01/25 13:30:20 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2014 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: axp22x.c,v 1.7 2021/01/17 21:42:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: axp22x.c,v 1.8 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -42,8 +42,7 @@
 
 static const struct device_compatible_entry compat_data[] = {
        { .compat = "x-powers,axp221" },
-
-       { 0 }
+       { }
 };
 
 #define AXP_TEMP_MON_REG       0x56    /* 2 bytes */
diff -r b1413f996c4f -r b95b586bf39f sys/dev/i2c/axppmic.c
--- a/sys/dev/i2c/axppmic.c     Mon Jan 25 13:08:04 2021 +0000
+++ b/sys/dev/i2c/axppmic.c     Mon Jan 25 13:30:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: axppmic.c,v 1.31 2021/01/18 15:28:21 thorpej Exp $ */
+/* $NetBSD: axppmic.c,v 1.32 2021/01/25 13:30:20 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2014-2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.31 2021/01/18 15:28:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.32 2021/01/25 13:30:20 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -471,8 +471,7 @@
        { .compat = "x-powers,axp806",          .data = &axp806_config },
        { .compat = "x-powers,axp809",          .data = &axp809_config },
        { .compat = "x-powers,axp813",          .data = &axp813_config },
-
-       { 0 }
+       { }
 };



Home | Main Index | Thread Index | Old Index