xfree86: modsetting: use explicit field initializers for XF86ModuleData

Even though the order of these fields shouldn't change anytime
soon, it's still better programming style to name'em explicitly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1788>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-12 11:24:02 +01:00 committed by Marge Bot
parent c8ad9c6567
commit 2a10eff6c5

View File

@ -157,21 +157,23 @@ int ms_entity_index = -1;
static MODULESETUPPROTO(Setup);
static XF86ModuleVersionInfo VersRec = {
"modesetting",
MODULEVENDORSTRING,
MODINFOSTRING1,
MODINFOSTRING2,
XORG_VERSION_CURRENT,
XORG_VERSION_MAJOR,
XORG_VERSION_MINOR,
XORG_VERSION_PATCH,
ABI_CLASS_VIDEODRV,
ABI_VIDEODRV_VERSION,
MOD_CLASS_VIDEODRV,
{0, 0, 0, 0}
.modname = "modesetting",
.vendor = MODULEVENDORSTRING,
._modinfo1_ = MODINFOSTRING1,
._modinfo1_ = MODINFOSTRING2,
.xf86version = XORG_VERSION_CURRENT,
.majorversion = XORG_VERSION_MAJOR,
.minorversion = XORG_VERSION_MINOR,
.patchlevel = XORG_VERSION_PATCH,
.abiclass = ABI_CLASS_VIDEODRV,
.abiversion = ABI_VIDEODRV_VERSION,
.moduleclass = MOD_CLASS_VIDEODRV,
};
_X_EXPORT XF86ModuleData modesettingModuleData = { &VersRec, Setup, NULL };
_X_EXPORT XF86ModuleData modesettingModuleData = {
.vers = &VersRec,
.setup = Setup
};
static void *
Setup(void *module, void *opts, int *errmaj, int *errmin)