Use designated initializers and a consistent termination style in

compat_data[].
This commit is contained in:
thorpej 2021-01-17 21:42:35 +00:00
parent d5ff218b54
commit 7246a94523
36 changed files with 193 additions and 158 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ac100.c,v 1.4 2019/07/27 16:02:27 thorpej Exp $ */
/* $NetBSD: ac100.c,v 1.5 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2014 Jared D. McNeill <jmcneill@invisible.ca>
@ -29,7 +29,7 @@
#include "opt_fdt.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ac100.c,v 1.4 2019/07/27 16:02:27 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: ac100.c,v 1.5 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -93,8 +93,9 @@ __KERNEL_RCSID(0, "$NetBSD: ac100.c,v 1.4 2019/07/27 16:02:27 thorpej Exp $");
#define AC100_RTC_UPD_TRIG_WRITE __BIT(15)
static const struct device_compatible_entry compat_data[] = {
{ "x-powers,ac100", 0 },
{ NULL, 0 }
{ .compat = "x-powers,ac100" },
{ 0 }
};
struct ac100_softc {

View File

@ -1,4 +1,4 @@
/* $NetBSD: adadc.c,v 1.7 2019/06/15 02:00:21 macallan Exp $ */
/* $NetBSD: adadc.c,v 1.8 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2018 Michael Lorenz
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: adadc.c,v 1.7 2019/06/15 02:00:21 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: adadc.c,v 1.8 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -94,8 +94,9 @@ CFATTACH_DECL_NEW(adadc, sizeof(struct adadc_softc),
adadc_match, adadc_attach, NULL, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "ad7417", 0 },
{ NULL, 0 }
{ .compat = "ad7417" },
{ 0 }
};
/* calibaration table from Darwin via Linux */

View File

@ -1,4 +1,4 @@
/* $NetBSD: adm1021.c,v 1.21 2020/12/10 17:02:51 jdc Exp $ */
/* $NetBSD: adm1021.c,v 1.22 2021/01/17 21:42:35 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.21 2020/12/10 17:02:51 jdc Exp $");
__KERNEL_RCSID(0, "$NetBSD: adm1021.c,v 1.22 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -145,10 +145,11 @@ CFATTACH_DECL_NEW(admtemp, sizeof(struct admtemp_softc),
/* XXX: add flags for compats to admtemp_setflags() */
static const struct device_compatible_entry compat_data[] = {
{ "i2c-max1617", 0 },
{ "max6642", 0 },
{ "max6690", 0 },
{ NULL, 0 }
{ .compat = "i2c-max1617" },
{ .compat = "max6642" },
{ .compat = "max6690" },
{ 0 }
};
int

View File

@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: adm1026.c,v 1.8 2020/06/26 10:06:57 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: adm1026.c,v 1.9 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -129,8 +129,9 @@ CFATTACH_DECL_NEW(adm1026hm, sizeof(struct adm1026_softc),
adm1026_match, adm1026_attach, adm1026_detach, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "i2c-adm1026", 0 },
{ NULL, 0 }
{ .compat = "i2c-adm1026" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: anxedp.c,v 1.3 2020/01/01 18:09:44 thorpej Exp $ */
/* $NetBSD: anxedp.c,v 1.4 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2019 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: anxedp.c,v 1.3 2020/01/01 18:09:44 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: anxedp.c,v 1.4 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -68,8 +68,9 @@ __KERNEL_RCSID(0, "$NetBSD: anxedp.c,v 1.3 2020/01/01 18:09:44 thorpej Exp $");
#define ANX_RPLY_RECEIV __BIT(1)
static const struct device_compatible_entry compat_data[] = {
{ "analogix,anx6345", 1 },
{ NULL }
{ .compat = "analogix,anx6345" },
{ 0 }
};
struct anxedp_softc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: as3722.c,v 1.19 2020/01/04 02:21:15 thorpej Exp $ */
/* $NetBSD: as3722.c,v 1.20 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill@invisible.ca>
@ -29,7 +29,7 @@
#include "opt_fdt.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: as3722.c,v 1.19 2020/01/04 02:21:15 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: as3722.c,v 1.20 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -223,8 +223,9 @@ CFATTACH_DECL_NEW(as3722reg, sizeof(struct as3722reg_softc),
#endif
static const struct device_compatible_entry compat_data[] = {
{ "ams,as3722", 0 },
{ NULL, 0 }
{ .compat = "ams,as3722" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: asms.c,v 1.1 2020/04/24 12:38:31 macallan Exp $ */
/* $NetBSD: asms.c,v 1.2 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2020 Michael Lorenz
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: asms.c,v 1.1 2020/04/24 12:38:31 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: asms.c,v 1.2 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -58,9 +58,10 @@ CFATTACH_DECL_NEW(asms, sizeof(struct asms_softc),
asms_match, asms_attach, NULL, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "accelerometer", 0 },
{ "AAPL,accelerometer_1", 0 },
{ NULL, 0 }
{ .compat = "accelerometer" },
{ .compat = "AAPL,accelerometer_1" },
{ 0 }
};
/* ASMS Registers, from OpenBSD */

View File

@ -1,4 +1,4 @@
/* $NetBSD: axp20x.c,v 1.16 2020/02/16 22:43:27 thorpej Exp $ */
/* $NetBSD: axp20x.c,v 1.17 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2014-2017 Jared McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: axp20x.c,v 1.16 2020/02/16 22:43:27 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: axp20x.c,v 1.17 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -211,8 +211,9 @@ CFATTACH_DECL_NEW(axp20x, sizeof(struct axp20x_softc),
axp20x_match, axp20x_attach, NULL, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "x-powers,axp209", 0 },
{ NULL, 0 }
{ .compat = "x-powers,axp209" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: axp22x.c,v 1.6 2018/06/26 06:03:57 thorpej Exp $ */
/* $NetBSD: axp22x.c,v 1.7 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2014 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: axp22x.c,v 1.6 2018/06/26 06:03:57 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: axp22x.c,v 1.7 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -41,8 +41,9 @@ __KERNEL_RCSID(0, "$NetBSD: axp22x.c,v 1.6 2018/06/26 06:03:57 thorpej Exp $");
#include <dev/sysmon/sysmonvar.h>
static const struct device_compatible_entry compat_data[] = {
{ "x-powers,axp221", 0 },
{ NULL, 0 }
{ .compat = "x-powers,axp221" },
{ 0 }
};
#define AXP_TEMP_MON_REG 0x56 /* 2 bytes */

View File

@ -1,4 +1,4 @@
/* $NetBSD: cwfg.c,v 1.1 2020/01/03 18:00:05 jmcneill Exp $ */
/* $NetBSD: cwfg.c,v 1.2 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2020 Jared McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cwfg.c,v 1.1 2020/01/03 18:00:05 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: cwfg.c,v 1.2 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -102,8 +102,9 @@ struct cwfg_softc {
#define CWFG_ALERT_LEVEL_DEFAULT 0
static const struct device_compatible_entry compat_data[] = {
{ "cellwise,cw201x", 1 },
{ NULL, 0 }
{ .compat = "cellwise,cw201x" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: dbcool.c,v 1.56 2020/07/12 06:42:32 macallan Exp $ */
/* $NetBSD: dbcool.c,v 1.57 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.56 2020/07/12 06:42:32 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.57 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -732,11 +732,12 @@ CFATTACH_DECL_NEW(dbcool, sizeof(struct dbcool_softc),
dbcool_match, dbcool_attach, dbcool_detach, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "i2c-adm1031", 0 },
{ "adt7467", 0 },
{ "adt7460", 0 },
{ "adm1030", 0 },
{ NULL, 0 }
{ .compat = "i2c-adm1031" },
{ .compat = "adt7467" },
{ .compat = "adt7460" },
{ .compat = "adm1030" },
{ 0 }
};
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: dstemp.c,v 1.6 2020/08/21 21:28:22 macallan Exp $ */
/* $NetBSD: dstemp.c,v 1.7 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2018 Michael Lorenz
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dstemp.c,v 1.6 2020/08/21 21:28:22 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: dstemp.c,v 1.7 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -78,8 +78,9 @@ CFATTACH_DECL_NEW(dstemp, sizeof(struct dstemp_softc),
dstemp_match, dstemp_attach, NULL, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "ds1631", 0 },
{ NULL, 0 }
{ .compat = "ds1631" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: em3027.c,v 1.5 2020/12/23 17:57:00 uwe Exp $ */
/* $NetBSD: em3027.c,v 1.6 2021/01/17 21:42:35 thorpej Exp $ */
/*
* Copyright (c) 2018 Valery Ushakov
* All rights reserved.
@ -28,7 +28,7 @@
* EM Microelectronic EM3027 RTC
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: em3027.c,v 1.5 2020/12/23 17:57:00 uwe Exp $");
__KERNEL_RCSID(0, "$NetBSD: em3027.c,v 1.6 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -106,8 +106,9 @@ static int em3027rtc_read_byte(struct em3027rtc_softc *, uint8_t, uint8_t *);
static int em3027rtc_write_byte(struct em3027rtc_softc *, uint8_t, uint8_t);
static const struct device_compatible_entry compat_data[] = {
{ "emmicro,em3027", 0 },
{ NULL, 0 },
{ .compat = "emmicro,em3027" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: es8316ac.c,v 1.2 2020/01/03 01:00:08 jmcneill Exp $ */
/* $NetBSD: es8316ac.c,v 1.3 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2020 Jared McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: es8316ac.c,v 1.2 2020/01/03 01:00:08 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: es8316ac.c,v 1.3 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -103,8 +103,9 @@ __KERNEL_RCSID(0, "$NetBSD: es8316ac.c,v 1.2 2020/01/03 01:00:08 jmcneill Exp $"
#define DACVOL_R_DACVOLUME __BITS(7,0)
static const struct device_compatible_entry compat_data[] = {
{ "everest,es8316", 1 },
{ NULL }
{ .compat = "everest,es8316" },
{ 0 }
};
struct escodec_softc {

View File

@ -1,4 +1,4 @@
/* $NetBSD: fcu.c,v 1.9 2019/06/15 02:00:21 macallan Exp $ */
/* $NetBSD: fcu.c,v 1.10 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2018 Michael Lorenz
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fcu.c,v 1.9 2019/06/15 02:00:21 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: fcu.c,v 1.10 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -116,8 +116,9 @@ CFATTACH_DECL_NEW(fcu, sizeof(struct fcu_softc),
fcu_match, fcu_attach, NULL, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "fcu", 0 },
{ NULL, 0 }
{ .compat = "fcu" },
{ 0 }
};
static int

View File

@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hytp14.c,v 1.10 2020/12/05 14:50:33 jdc Exp $");
__KERNEL_RCSID(0, "$NetBSD: hytp14.c,v 1.11 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -120,8 +120,9 @@ static struct hytp14_sensor hytp14_sensors[] = {
};
static const struct device_compatible_entry compat_data[] = {
{ "i2c-hytp14", 0 },
{ NULL, 0 }
{ .compat = "i2c-hytp14" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: ihidev.c,v 1.12 2020/01/09 04:04:01 thorpej Exp $ */
/* $NetBSD: ihidev.c,v 1.13 2021/01/17 21:47:50 thorpej Exp $ */
/* $OpenBSD ihidev.c,v 1.13 2017/04/08 02:57:23 deraadt Exp $ */
/*-
@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ihidev.c,v 1.12 2020/01/09 04:04:01 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: ihidev.c,v 1.13 2021/01/17 21:47:50 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -126,8 +126,9 @@ static int ihidev_print(void *, const char *);
static int ihidev_submatch(device_t, cfdata_t, const int *, void *);
static const struct device_compatible_entry compat_data[] = {
{ "hid-over-i2c", 0 },
{ NULL, 0 }
{ .compat = "hid-over-i2c" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: lm75.c,v 1.36 2020/08/21 20:41:43 macallan Exp $ */
/* $NetBSD: lm75.c,v 1.37 2021/01/17 21:42:35 thorpej Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lm75.c,v 1.36 2020/08/21 20:41:43 macallan Exp $");
__KERNEL_RCSID(0, "$NetBSD: lm75.c,v 1.37 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -95,14 +95,14 @@ static void lmtemp_setup_sysctl(struct lmtemp_softc *);
static int sysctl_lm75_temp(SYSCTLFN_ARGS);
static const struct device_compatible_entry compat_data[] = {
{ "i2c-lm75", 0 },
{ "lm75", 0 },
{ "ds1775", 0 },
{ .compat = "i2c-lm75" },
{ .compat = "lm75" },
{ .compat = "ds1775" },
/*
* see XXX in _attach() below: add code once non-lm75 matches are
* added here!
*/
{ NULL, 0 }
{ 0 }
};
enum {

View File

@ -1,4 +1,4 @@
/* $NetBSD: lm87.c,v 1.11 2019/12/23 14:43:03 thorpej Exp $ */
/* $NetBSD: lm87.c,v 1.12 2021/01/17 21:42:35 thorpej Exp $ */
/* $OpenBSD: lm87.c,v 1.20 2008/11/10 05:19:48 cnst Exp $ */
/*
@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lm87.c,v 1.11 2019/12/23 14:43:03 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: lm87.c,v 1.12 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -136,12 +136,13 @@ CFATTACH_DECL_NEW(lmenv, sizeof(struct lmenv_softc),
lmenv_match, lmenv_attach, NULL, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "lm87", 0 },
{ "lm87cimt", 0 },
{ "adm9240", 0 },
{ "lm81", 0 },
{ "ds1780", 0 },
{ NULL, 0 }
{ .compat = "lm87" },
{ .compat = "lm87cimt" },
{ .compat = "adm9240" },
{ .compat = "lm81" },
{ .compat = "ds1780" },
{ 0 }
};
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: max77620.c,v 1.8 2019/12/23 19:20:18 thorpej Exp $ */
/* $NetBSD: max77620.c,v 1.9 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: max77620.c,v 1.8 2019/12/23 19:20:18 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: max77620.c,v 1.9 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -68,8 +68,9 @@ struct max77620_pin {
};
static const struct device_compatible_entry compat_data[] = {
{ "maxim,max77620", 0 },
{ NULL, 0 }
{ .compat = "maxim,max77620" },
{ 0 }
};
static uint8_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: pca9685.c,v 1.3 2019/07/25 04:24:44 thorpej Exp $ */
/* $NetBSD: pca9685.c,v 1.4 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2018, 2019 Jason R. Thorpe
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pca9685.c,v 1.3 2019/07/25 04:24:44 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pca9685.c,v 1.4 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -88,8 +88,9 @@ static int pcapwm_pwm_set_config(struct pwm_controller *,
const struct pwm_config *);
static const struct device_compatible_entry compat_data[] = {
{ "nxp,pca9685-pwm", 0 },
{ NULL }
{ .compat = "nxp,pca9685-pwm" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcf8563.c,v 1.12 2020/01/02 16:48:05 thorpej Exp $ */
/* $NetBSD: pcf8563.c,v 1.13 2021/01/17 21:42:35 thorpej Exp $ */
/*
* Copyright (c) 2011 Jonathan A. Kollasch
@ -32,7 +32,7 @@
#endif
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pcf8563.c,v 1.12 2020/01/02 16:48:05 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcf8563.c,v 1.13 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -49,9 +49,10 @@ __KERNEL_RCSID(0, "$NetBSD: pcf8563.c,v 1.12 2020/01/02 16:48:05 thorpej Exp $")
#endif
static const struct device_compatible_entry compat_data[] = {
{ "nxp,pcf8563", 0 },
{ "pcf8563rtc", 0 },
{ NULL, 0 }
{ .compat = "nxp,pcf8563" },
{ .compat = "pcf8563rtc" },
{ 0 }
};
struct pcf8563rtc_softc {

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcf8574.c,v 1.6 2020/12/23 07:06:26 jdc Exp $ */
/* $NetBSD: pcf8574.c,v 1.7 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pcf8574.c,v 1.6 2020/12/23 07:06:26 jdc Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcf8574.c,v 1.7 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -108,8 +108,9 @@ CFATTACH_DECL_NEW(pcf8574io, sizeof(struct pcf8574_softc),
pcf8574_match, pcf8574_attach, pcf8574_detach, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "i2c-pcf8574", 0 },
{ NULL, 0 }
{ .compat = "i2c-pcf8574" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: spdmem_i2c.c,v 1.18 2019/12/23 14:55:22 thorpej Exp $ */
/* $NetBSD: spdmem_i2c.c,v 1.19 2021/01/17 21:42:35 thorpej Exp $ */
/*
* Copyright (c) 2007 Nicolas Joly
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.18 2019/12/23 14:55:22 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.19 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -173,9 +173,10 @@ error:
}
static const struct device_compatible_entry compat_data[] = {
{ "atmel,spd", 0 },
{ "i2c-at34c02", 0 },
{ NULL, 0 }
{ .compat = "atmel,spd" },
{ .compat = "i2c-at34c02" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: ssdfb_i2c.c,v 1.5 2019/11/05 19:59:35 tnn Exp $ */
/* $NetBSD: ssdfb_i2c.c,v 1.6 2021/01/17 21:42:35 thorpej Exp $ */
/*
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ssdfb_i2c.c,v 1.5 2019/11/05 19:59:35 tnn Exp $");
__KERNEL_RCSID(0, "$NetBSD: ssdfb_i2c.c,v 1.6 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -67,9 +67,10 @@ CFATTACH_DECL_NEW(ssdfb_iic, sizeof(struct ssdfb_i2c_softc),
ssdfb_i2c_match, ssdfb_i2c_attach, ssdfb_i2c_detach, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "solomon,ssd1306fb-i2c", 0 },
{ "sino,sh1106fb-i2c", 0 },
{ NULL, 0 }
{ .compat = "solomon,ssd1306fb-i2c" },
{ .compat = "sino,sh1106fb-i2c" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: sy8106a.c,v 1.5 2019/12/23 19:35:07 thorpej Exp $ */
/* $NetBSD: sy8106a.c,v 1.6 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sy8106a.c,v 1.5 2019/12/23 19:35:07 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: sy8106a.c,v 1.6 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -60,8 +60,9 @@ struct sy8106a_softc {
};
static const struct device_compatible_entry compat_data[] = {
{ "silergy,sy8106a", 0 },
{ NULL, 0 }
{ .compat = "silergy,sy8106a" },
{ 0 }
};
static uint8_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcagpio.c,v 1.5 2019/12/23 19:38:58 thorpej Exp $ */
/* $NetBSD: tcagpio.c,v 1.6 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tcagpio.c,v 1.5 2019/12/23 19:38:58 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: tcagpio.c,v 1.6 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -69,8 +69,9 @@ struct tcagpio_pin {
};
static const struct device_compatible_entry compat_data[] = {
{ "ti,tca9539", 0 },
{ NULL, 0 }
{ .compat = "ti,tca9539" },
{ 0 }
};
static uint8_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcakp.c,v 1.12 2020/12/16 19:49:04 christos Exp $ */
/* $NetBSD: tcakp.c,v 1.13 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca>
@ -29,7 +29,7 @@
#include "opt_fdt.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tcakp.c,v 1.12 2020/12/16 19:49:04 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: tcakp.c,v 1.13 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -118,8 +118,9 @@ CFATTACH_DECL_NEW(tcakp, sizeof(struct tcakp_softc),
tcakp_match, tcakp_attach, NULL, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "ti,tca8418", 0 },
{ NULL, 0 }
{ .compat = "ti,tca8418" },
{ 0 }
};
static u_int

View File

@ -1,4 +1,4 @@
/* $NetBSD: tda19988.c,v 1.4 2019/12/23 15:05:32 thorpej Exp $ */
/* $NetBSD: tda19988.c,v 1.5 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2015 Oleksandr Tymoshenko <gonzo@freebsd.org>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tda19988.c,v 1.4 2019/12/23 15:05:32 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: tda19988.c,v 1.5 2021/01/17 21:42:35 thorpej Exp $");
/*
* NXP TDA19988 HDMI encoder
@ -244,8 +244,9 @@ enum {
#define TDA19988 0x0301
static const struct device_compatible_entry compat_data[] = {
{ "nxp,tda998x", 1 },
{ NULL }
{ .compat = "nxp,tda998x" },
{ 0 }
};
struct tda19988_softc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: titemp.c,v 1.8 2019/12/23 15:07:42 thorpej Exp $ */
/* $NetBSD: titemp.c,v 1.9 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: titemp.c,v 1.8 2019/12/23 15:07:42 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: titemp.c,v 1.9 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -85,8 +85,9 @@ CFATTACH_DECL_NEW(titemp, sizeof(struct titemp_softc),
titemp_match, titemp_attach, NULL, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "ti,tmp451", 0 },
{ NULL, 0 }
{ .compat = "ti,tmp451" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: tps65217pmic.c,v 1.15 2019/12/23 21:24:59 thorpej Exp $ */
/* $NetBSD: tps65217pmic.c,v 1.16 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
#include "opt_fdt.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tps65217pmic.c,v 1.15 2019/12/23 21:24:59 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: tps65217pmic.c,v 1.16 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -299,8 +299,9 @@ static struct tps_reg_param tps_regulators[] = {
static bool matched = false;
static const struct device_compatible_entry compat_data[] = {
{ "ti,tps65217", 0 },
{ NULL }
{ .compat = "ti,tps65217" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: tsllux.c,v 1.1 2021/01/04 22:09:35 thorpej Exp $ */
/* $NetBSD: tsllux.c,v 1.2 2021/01/17 21:47:50 thorpej Exp $ */
/*-
* Copyright (c) 2018 Jason R. Thorpe
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tsllux.c,v 1.1 2021/01/04 22:09:35 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: tsllux.c,v 1.2 2021/01/17 21:47:50 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -78,9 +78,10 @@ CFATTACH_DECL_NEW(tsllux, sizeof(struct tsllux_softc),
tsllux_match, tsllux_attach, NULL, NULL);
static const struct device_compatible_entry tsllux_compat_data[] = {
{ "amstaos,tsl2560", 0 },
{ "amstaos,tsl2561", 0 },
{ NULL, 0 }
{ .compat = "amstaos,tsl2560" },
{ .compat = "amstaos,tsl2561" },
{ 0 }
};
static int tsllux_read1(struct tsllux_softc *, uint8_t, uint8_t *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: twl4030.c,v 1.3 2019/11/03 09:34:09 jmcneill Exp $ */
/* $NetBSD: twl4030.c,v 1.4 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2019 Jared McNeill <jmcneill@invisible.ca>
@ -29,7 +29,7 @@
#include "opt_fdt.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: twl4030.c,v 1.3 2019/11/03 09:34:09 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: twl4030.c,v 1.4 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -99,8 +99,9 @@ struct twl_pin {
};
static const struct device_compatible_entry compat_data[] = {
{ "ti,twl4030", 0 },
{ NULL, 0 }
{ .compat = "ti,twl4030" },
{ 0 }
};
#ifdef FDT

View File

@ -1,4 +1,4 @@
/* $NetBSD: m25p.c,v 1.15 2019/11/26 02:41:58 hkenken Exp $ */
/* $NetBSD: m25p.c,v 1.16 2021/01/17 21:42:35 thorpej Exp $ */
/*-
* Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: m25p.c,v 1.15 2019/11/26 02:41:58 hkenken Exp $");
__KERNEL_RCSID(0, "$NetBSD: m25p.c,v 1.16 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -117,8 +117,9 @@ static const struct m25p_info {
};
static const struct device_compatible_entry compat_data[] = {
{ "jedec,spi-nor", 0 },
{ NULL, 0 }
{ .compat = "jedec,spi-nor" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: oj6sh.c,v 1.5 2019/08/21 08:03:22 martin Exp $ */
/* $NetBSD: oj6sh.c,v 1.6 2021/01/17 21:42:35 thorpej Exp $ */
/*
* Copyright (c) 2014 Genetec Corporation. All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: oj6sh.c,v 1.5 2019/08/21 08:03:22 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: oj6sh.c,v 1.6 2021/01/17 21:42:35 thorpej Exp $");
#include "opt_oj6sh.h"
@ -127,8 +127,9 @@ static const struct wsmouse_accessops oj6sh_accessops = {
};
static const struct device_compatible_entry compat_data[] = {
{ "oj6sh", 0 },
{ NULL, 0 }
{ .compat = "oj6sh" },
{ 0 }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: ssdfb_spi.c,v 1.3 2019/11/02 22:55:57 tnn Exp $ */
/* $NetBSD: ssdfb_spi.c,v 1.4 2021/01/17 21:42:35 thorpej Exp $ */
/*
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ssdfb_spi.c,v 1.3 2019/11/02 22:55:57 tnn Exp $");
__KERNEL_RCSID(0, "$NetBSD: ssdfb_spi.c,v 1.4 2021/01/17 21:42:35 thorpej Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -74,8 +74,9 @@ CFATTACH_DECL_NEW(ssdfb_spi, sizeof(struct ssdfb_spi_softc),
ssdfb_spi_match, ssdfb_spi_attach, NULL, NULL);
static const struct device_compatible_entry compat_data[] = {
{ "solomon,ssd1322", 0 },
{ NULL, 0 }
{ .compat = "solomon,ssd1322" },
{ 0 }
};
static int