Switch more device_t's to named initializers

Fixes "missing braces around initializer" warnings
This commit is contained in:
Alexander Babikov
2023-02-28 12:23:59 +05:00
parent 875a9fe373
commit 5653ae85d9
3 changed files with 25 additions and 25 deletions

View File

@@ -743,17 +743,17 @@ static const device_config_t pcjr_config[] = {
};
const device_t pcjr_device = {
"IBM PCjr",
"pcjr",
0,
0,
NULL,
NULL,
NULL,
{ NULL },
speed_changed,
NULL,
pcjr_config
.name = "IBM PCjr",
.internal_name = "pcjr",
.flags = 0,
.local = 0,
.init = NULL,
.close = NULL,
.reset = NULL,
{ .available = NULL },
.speed_changed = speed_changed,
.force_redraw = NULL,
.config = pcjr_config
};
int

View File

@@ -338,8 +338,8 @@ const device_t fdc37c669_370_device = {
.internal_name = "fdc37c669_370",
.flags = 0,
.local = 1,
fdc37c669_init,
fdc37c669_close,
.init = fdc37c669_init,
.close = fdc37c669_close,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,

View File

@@ -793,17 +793,17 @@ access_bus_init(const device_t *info)
}
static const device_t access_bus_device = {
"SMC FDC37C932FR ACCESS.bus",
"access_bus",
0,
0x03,
access_bus_init,
access_bus_close,
NULL,
{ NULL },
NULL,
NULL,
NULL
.name = "SMC FDC37C932FR ACCESS.bus",
.internal_name = "access_bus",
.flags = 0,
.local = 0x03,
.init = access_bus_init,
.close = access_bus_close,
.reset = NULL,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};
static void