On 25.01.2021 15:20, Jason R Thorpe wrote: > Module Name: src > Committed By: thorpej > Date: Mon Jan 25 14:20:39 UTC 2021 > > Modified Files: > src/sys/arch/arm/altera: cycv_clkmgr.c > src/sys/arch/arm/amlogic: meson_pinctrl.c meson_pwm.c meson_thermal.c > meson_usbctrl.c meson_usbphy.c mesong12_clkc.c mesongx_mmc.c > mesongxbb_clkc.c > src/sys/arch/arm/broadcom: bcm2835_emmc.c bcm2835_intr.c > src/sys/arch/arm/fdt: gicv3_fdt.c pcihost_fdt.c > src/sys/arch/arm/nvidia: tegra_ahcisata.c tegra_nouveau.c tegra_pcie.c > tegra_pinmux.c tegra_soctherm.c tegra_xusb.c > src/sys/arch/arm/nxp: if_enet_imx.c imx6_pcie.c imx6_spi.c > imx8mq_usbphy.c imx_sdhc.c > src/sys/arch/arm/rockchip: rk3328_iomux.c rk3399_iomux.c rk_gmac.c > rk_i2s.c rk_pwm.c rk_tsadc.c rk_usb.c rk_v1crypto.c rk_vop.c > src/sys/arch/arm/samsung: exynos_dwcmmc.c exynos_pinctrl.c > exynos_platform.c exynos_usbdrdphy.c exynos_usbphy.c > src/sys/arch/arm/sociox: if_ave.c > src/sys/arch/arm/sunxi: sun4i_a10_ccu.c sun4i_dma.c sun6i_dma.c > sun8i_crypto.c sunxi_can.c sunxi_codec.c sunxi_de2_ccu.c > sunxi_dep.c sunxi_gpio.c sunxi_hdmi.c sunxi_hdmiphy.c sunxi_i2s.c > sunxi_lcdc.c sunxi_lradc.c sunxi_mixer.c sunxi_mmc.c sunxi_musb.c > sunxi_nmi.c sunxi_pwm.c sunxi_rsb.c sunxi_rtc.c sunxi_sid.c > sunxi_sramc.c sunxi_tcon.c sunxi_thermal.c sunxi_ts.c sunxi_twi.c > sunxi_usb3phy.c sunxi_usbphy.c sunxi_wdt.c > src/sys/arch/arm/ti: ti_dpll_clock.c ti_gpio.c ti_iic.c ti_omapintc.c > ti_omaptimer.c ti_sdhc.c > src/sys/arch/macppc/dev: deq.c lmu.c psoc.c smusat.c > src/sys/arch/mips/cavium/dev: octeon_cib.c octeon_intc.c > src/sys/arch/sparc64/dev: pcf8591_envctrl.c > > Log Message: > Since we're using designated initialisers for compat data, we should > use a completely empty initializer for the sentinel. > > static const struct device_compatible_entry compat_data[] = { > { .compat = "ecadc" }, > - > - { 0 } > + { } > }; > > static int > I have no problem with this change but I am curious why should we use "{ }"? It's a C GNU extension and C++ syntax.
Attachment:
signature.asc
Description: OpenPGP digital signature