Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/fdt Since we're using designated initialisers for co...
details: https://anonhg.NetBSD.org/src/rev/99ad1802930b
branches: trunk
changeset: 980163:99ad1802930b
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Jan 25 14:20:37 2021 +0000
description:
Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.
diffstat:
sys/arch/arm/altera/cycv_clkmgr.c | 8 ++++----
sys/arch/arm/amlogic/meson_pinctrl.c | 6 +++---
sys/arch/arm/amlogic/meson_pwm.c | 7 +++----
sys/arch/arm/amlogic/meson_thermal.c | 7 +++----
sys/arch/arm/amlogic/meson_usbctrl.c | 7 +++----
sys/arch/arm/amlogic/meson_usbphy.c | 6 +++---
sys/arch/arm/amlogic/mesong12_clkc.c | 7 +++----
sys/arch/arm/amlogic/mesongx_mmc.c | 7 +++----
sys/arch/arm/amlogic/mesongxbb_clkc.c | 7 +++----
sys/arch/arm/broadcom/bcm2835_emmc.c | 6 +++---
sys/arch/arm/broadcom/bcm2835_intr.c | 6 +++---
sys/arch/arm/fdt/gicv3_fdt.c | 10 +++++-----
sys/arch/arm/fdt/pcihost_fdt.c | 7 +++----
sys/arch/arm/nvidia/tegra_ahcisata.c | 7 +++----
sys/arch/arm/nvidia/tegra_nouveau.c | 7 +++----
sys/arch/arm/nvidia/tegra_pcie.c | 6 +++---
sys/arch/arm/nvidia/tegra_pinmux.c | 6 +++---
sys/arch/arm/nvidia/tegra_soctherm.c | 6 +++---
sys/arch/arm/nvidia/tegra_xusb.c | 7 +++----
sys/arch/arm/nxp/if_enet_imx.c | 7 +++----
sys/arch/arm/nxp/imx6_pcie.c | 7 +++----
sys/arch/arm/nxp/imx6_spi.c | 7 +++----
sys/arch/arm/nxp/imx8mq_usbphy.c | 7 +++----
sys/arch/arm/nxp/imx_sdhc.c | 7 +++----
sys/arch/arm/rockchip/rk3328_iomux.c | 7 +++----
sys/arch/arm/rockchip/rk3399_iomux.c | 6 +++---
sys/arch/arm/rockchip/rk_gmac.c | 7 +++----
sys/arch/arm/rockchip/rk_i2s.c | 7 +++----
sys/arch/arm/rockchip/rk_pwm.c | 7 +++----
sys/arch/arm/rockchip/rk_tsadc.c | 6 +++---
sys/arch/arm/rockchip/rk_usb.c | 7 +++----
sys/arch/arm/rockchip/rk_v1crypto.c | 7 +++----
sys/arch/arm/rockchip/rk_vop.c | 6 +++---
sys/arch/arm/samsung/exynos_dwcmmc.c | 6 +++---
sys/arch/arm/samsung/exynos_pinctrl.c | 6 +++---
sys/arch/arm/samsung/exynos_platform.c | 7 +++----
sys/arch/arm/samsung/exynos_usbdrdphy.c | 7 +++----
sys/arch/arm/samsung/exynos_usbphy.c | 7 +++----
sys/arch/arm/sociox/if_ave.c | 7 +++----
sys/arch/arm/sunxi/sun4i_a10_ccu.c | 7 +++----
sys/arch/arm/sunxi/sun4i_dma.c | 7 +++----
sys/arch/arm/sunxi/sun6i_dma.c | 6 +++---
sys/arch/arm/sunxi/sun8i_crypto.c | 7 +++----
sys/arch/arm/sunxi/sunxi_can.c | 7 +++----
sys/arch/arm/sunxi/sunxi_codec.c | 6 +++---
sys/arch/arm/sunxi/sunxi_de2_ccu.c | 6 +++---
sys/arch/arm/sunxi/sunxi_dep.c | 7 +++----
sys/arch/arm/sunxi/sunxi_gpio.c | 7 +++----
sys/arch/arm/sunxi/sunxi_hdmi.c | 7 +++----
sys/arch/arm/sunxi/sunxi_hdmiphy.c | 6 +++---
sys/arch/arm/sunxi/sunxi_i2s.c | 6 +++---
sys/arch/arm/sunxi/sunxi_lcdc.c | 7 +++----
sys/arch/arm/sunxi/sunxi_lradc.c | 7 +++----
sys/arch/arm/sunxi/sunxi_mixer.c | 6 +++---
sys/arch/arm/sunxi/sunxi_mmc.c | 6 +++---
sys/arch/arm/sunxi/sunxi_musb.c | 7 +++----
sys/arch/arm/sunxi/sunxi_nmi.c | 6 +++---
sys/arch/arm/sunxi/sunxi_pwm.c | 7 +++----
sys/arch/arm/sunxi/sunxi_rsb.c | 7 +++----
sys/arch/arm/sunxi/sunxi_rtc.c | 6 +++---
sys/arch/arm/sunxi/sunxi_sid.c | 7 +++----
sys/arch/arm/sunxi/sunxi_sramc.c | 10 +++++-----
sys/arch/arm/sunxi/sunxi_tcon.c | 7 +++----
sys/arch/arm/sunxi/sunxi_thermal.c | 7 +++----
sys/arch/arm/sunxi/sunxi_ts.c | 7 +++----
sys/arch/arm/sunxi/sunxi_twi.c | 7 +++----
sys/arch/arm/sunxi/sunxi_usb3phy.c | 7 +++----
sys/arch/arm/sunxi/sunxi_usbphy.c | 7 +++----
sys/arch/arm/sunxi/sunxi_wdt.c | 7 +++----
sys/arch/arm/ti/ti_dpll_clock.c | 6 +++---
sys/arch/arm/ti/ti_gpio.c | 7 +++----
sys/arch/arm/ti/ti_iic.c | 7 +++----
sys/arch/arm/ti/ti_omapintc.c | 7 +++----
sys/arch/arm/ti/ti_omaptimer.c | 7 +++----
sys/arch/arm/ti/ti_sdhc.c | 6 +++---
sys/arch/macppc/dev/deq.c | 7 +++----
sys/arch/macppc/dev/lmu.c | 7 +++----
sys/arch/macppc/dev/psoc.c | 7 +++----
sys/arch/macppc/dev/smusat.c | 3 +--
sys/arch/mips/cavium/dev/octeon_cib.c | 7 +++----
sys/arch/mips/cavium/dev/octeon_intc.c | 7 +++----
sys/arch/sparc64/dev/pcf8591_envctrl.c | 7 +++----
sys/dev/fdt/amdccp_fdt.c | 7 +++----
sys/dev/fdt/connector_fdt.c | 7 +++----
sys/dev/fdt/dwc2_fdt.c | 6 +++---
sys/dev/fdt/dwcmmc_fdt.c | 7 +++----
sys/dev/fdt/i2cmux_fdt.c | 6 +++---
sys/dev/fdt/ns8250_uart.c | 7 +++----
sys/dev/fdt/panel_fdt.c | 7 +++----
sys/dev/fdt/pinctrl_single.c | 7 +++----
sys/dev/fdt/vmt_fdt.c | 7 +++----
91 files changed, 276 insertions(+), 339 deletions(-)
diffs (truncated from 2542 to 300 lines):
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/altera/cycv_clkmgr.c
--- a/sys/arch/arm/altera/cycv_clkmgr.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/altera/cycv_clkmgr.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: cycv_clkmgr.c,v 1.5 2021/01/19 03:25:50 thorpej Exp $ */
+/* $NetBSD: cycv_clkmgr.c,v 1.6 2021/01/25 14:20:37 thorpej Exp $ */
/* This file is in the public domain. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cycv_clkmgr.c,v 1.5 2021/01/19 03:25:50 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cycv_clkmgr.c,v 1.6 2021/01/25 14:20:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -113,7 +113,7 @@
static const struct device_compatible_entry compat_data[] = {
{ .compat = "altr,clk-mgr" },
- { 0 }
+ { }
};
static int
@@ -218,7 +218,7 @@
{ .compat = "altr,socfpga-pll-clock", .value = CYCV_CLK_TYPE_PLL },
{ .compat = "altr,socfpga-perip-clk", .value = CYCV_CLK_TYPE_PERIP },
{ .compat = "altr,socfpga-gate-clk", .value = CYCV_CLK_TYPE_PERIP },
- { 0 }
+ { }
};
static void
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/amlogic/meson_pinctrl.c
--- a/sys/arch/arm/amlogic/meson_pinctrl.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/amlogic/meson_pinctrl.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meson_pinctrl.c,v 1.8 2021/01/18 02:35:48 thorpej Exp $ */
+/* $NetBSD: meson_pinctrl.c,v 1.9 2021/01/25 14:20:37 thorpej Exp $ */
/*-
* Copyright (c) 2019 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "opt_soc.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: meson_pinctrl.c,v 1.8 2021/01/18 02:35:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: meson_pinctrl.c,v 1.9 2021/01/25 14:20:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -96,7 +96,7 @@
{ .compat = "amlogic,meson-g12a-periphs-pinctrl",
.data = &mesong12a_periphs_pinctrl_config },
#endif
- { 0 }
+ { }
};
#define MUX_READ(sc, reg) \
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/amlogic/meson_pwm.c
--- a/sys/arch/arm/amlogic/meson_pwm.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/amlogic/meson_pwm.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meson_pwm.c,v 1.2 2021/01/18 02:35:48 thorpej Exp $ */
+/* $NetBSD: meson_pwm.c,v 1.3 2021/01/25 14:20:37 thorpej Exp $ */
/*
* Copyright (c) 2021 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: meson_pwm.c,v 1.2 2021/01/18 02:35:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: meson_pwm.c,v 1.3 2021/01/25 14:20:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -69,8 +69,7 @@
{ .compat = "amlogic,meson-g12a-ao-pwm-ab" },
{ .compat = "amlogic,meson-g12a-ao-pwm-cd" },
{ .compat = "amlogic,meson-g12a-ee-pwm" },
-
- { 0 }
+ { }
};
#define MESON_PWM_NCHAN 2
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/amlogic/meson_thermal.c
--- a/sys/arch/arm/amlogic/meson_thermal.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/amlogic/meson_thermal.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meson_thermal.c,v 1.3 2021/01/18 02:35:48 thorpej Exp $ */
+/* $NetBSD: meson_thermal.c,v 1.4 2021/01/25 14:20:37 thorpej Exp $ */
/*
* Copyright (c) 2021 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: meson_thermal.c,v 1.3 2021/01/18 02:35:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: meson_thermal.c,v 1.4 2021/01/25 14:20:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -90,8 +90,7 @@
static const struct device_compatible_entry compat_data[] = {
{ .compat = "amlogic,g12a-cpu-thermal", .data = &thermal_cpu_conf },
{ .compat = "amlogic,g12a-ddr-thermal", .data = &thermal_ddr_conf },
-
- { 0 }
+ { }
};
struct meson_thermal_softc {
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/amlogic/meson_usbctrl.c
--- a/sys/arch/arm/amlogic/meson_usbctrl.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/amlogic/meson_usbctrl.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meson_usbctrl.c,v 1.2 2021/01/18 02:35:48 thorpej Exp $ */
+/* $NetBSD: meson_usbctrl.c,v 1.3 2021/01/25 14:20:37 thorpej Exp $ */
/*
* Copyright (c) 2021 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: meson_usbctrl.c,v 1.2 2021/01/18 02:35:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: meson_usbctrl.c,v 1.3 2021/01/25 14:20:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -112,8 +112,7 @@
static const struct device_compatible_entry compat_data[] = {
{ .compat = "amlogic,meson-g12a-usb-ctrl", .data = &mesong12_conf },
-
- { 0 }
+ { }
};
struct meson_usbctrl_softc {
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/amlogic/meson_usbphy.c
--- a/sys/arch/arm/amlogic/meson_usbphy.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/amlogic/meson_usbphy.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: meson_usbphy.c,v 1.3 2021/01/18 02:35:48 thorpej Exp $ */
+/* $NetBSD: meson_usbphy.c,v 1.4 2021/01/25 14:20:37 thorpej Exp $ */
/*-
* Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: meson_usbphy.c,v 1.3 2021/01/18 02:35:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: meson_usbphy.c,v 1.4 2021/01/25 14:20:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -65,7 +65,7 @@
{ .compat = "amlogic,meson-gxbb-usb2-phy",
.value = USBPHY_MESON8B },
- { 0 }
+ { }
};
struct meson_usbphy_softc {
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/amlogic/mesong12_clkc.c
--- a/sys/arch/arm/amlogic/mesong12_clkc.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/amlogic/mesong12_clkc.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mesong12_clkc.c,v 1.2 2021/01/18 02:35:48 thorpej Exp $ */
+/* $NetBSD: mesong12_clkc.c,v 1.3 2021/01/25 14:20:37 thorpej Exp $ */
/*-
* Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mesong12_clkc.c,v 1.2 2021/01/18 02:35:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mesong12_clkc.c,v 1.3 2021/01/25 14:20:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -1492,8 +1492,7 @@
static const struct device_compatible_entry compat_data[] = {
{ .compat = "amlogic,g12a-clkc", .data = &g12a_config },
{ .compat = "amlogic,g12b-clkc", .data = &g12b_config },
-
- { 0 }
+ { }
};
CFATTACH_DECL_NEW(mesong12_clkc, sizeof(struct meson_clk_softc),
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/amlogic/mesongx_mmc.c
--- a/sys/arch/arm/amlogic/mesongx_mmc.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/amlogic/mesongx_mmc.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mesongx_mmc.c,v 1.10 2021/01/18 02:35:48 thorpej Exp $ */
+/* $NetBSD: mesongx_mmc.c,v 1.11 2021/01/25 14:20:37 thorpej Exp $ */
/*-
* Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mesongx_mmc.c,v 1.10 2021/01/18 02:35:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mesongx_mmc.c,v 1.11 2021/01/25 14:20:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -271,8 +271,7 @@
{ .compat = "amlogic,meson-gx-mmc", .value = MESONGX_MMC_V2 },
{ .compat = "amlogic,meson-gxbb-mmc", .value = MESONGX_MMC_V2 },
{ .compat = "amlogic,meson-axg-mmc", .value = MESONGX_MMC_V3 },
-
- { 0 }
+ { }
};
static int
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/amlogic/mesongxbb_clkc.c
--- a/sys/arch/arm/amlogic/mesongxbb_clkc.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/amlogic/mesongxbb_clkc.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mesongxbb_clkc.c,v 1.3 2021/01/18 02:35:48 thorpej Exp $ */
+/* $NetBSD: mesongxbb_clkc.c,v 1.4 2021/01/25 14:20:37 thorpej Exp $ */
/*-
* Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: mesongxbb_clkc.c,v 1.3 2021/01/18 02:35:48 thorpej Exp $");
+__KERNEL_RCSID(1, "$NetBSD: mesongxbb_clkc.c,v 1.4 2021/01/25 14:20:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -81,8 +81,7 @@
static const struct device_compatible_entry compat_data[] = {
{ .compat = "amlogic,gxbb-clkc", .data = &gxbb_config },
{ .compat = "amlogic,gxl-clkc", .data = &gxl_config },
-
- { 0 }
+ { }
};
CFATTACH_DECL_NEW(mesongxbb_clkc, sizeof(struct meson_clk_softc),
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/broadcom/bcm2835_emmc.c
--- a/sys/arch/arm/broadcom/bcm2835_emmc.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_emmc.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_emmc.c,v 1.40 2021/01/18 02:35:48 thorpej Exp $ */
+/* $NetBSD: bcm2835_emmc.c,v 1.41 2021/01/25 14:20:38 thorpej Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_emmc.c,v 1.40 2021/01/18 02:35:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_emmc.c,v 1.41 2021/01/25 14:20:38 thorpej Exp $");
#include "bcmdmac.h"
@@ -99,7 +99,7 @@
static const struct device_compatible_entry compat_data[] = {
{ .compat = "brcm,bcm2835-sdhci", .value = BCM2835_SDHCI },
{ .compat = "brcm,bcm2711-emmc2", .value = BCM2711_EMMC2 },
- { NULL }
+ { }
};
/* ARGSUSED */
diff -r 7beb35934a84 -r 99ad1802930b sys/arch/arm/broadcom/bcm2835_intr.c
--- a/sys/arch/arm/broadcom/bcm2835_intr.c Mon Jan 25 13:30:20 2021 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_intr.c Mon Jan 25 14:20:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_intr.c,v 1.35 2021/01/19 00:38:52 thorpej Exp $ */
+/* $NetBSD: bcm2835_intr.c,v 1.36 2021/01/25 14:20:38 thorpej Exp $ */
/*-
* Copyright (c) 2012, 2015, 2019 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_intr.c,v 1.35 2021/01/19 00:38:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_intr.c,v 1.36 2021/01/25 14:20:38 thorpej Exp $");
#define _INTR_PRIVATE
Home |
Main Index |
Thread Index |
Old Index