From c8ad9c65672458da2cf5b2f4d298267a16188e8a Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 12 Feb 2025 11:24:02 +0100 Subject: [PATCH] xfree86: exa: 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 Part-of: --- hw/xfree86/exa/examodule.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/hw/xfree86/exa/examodule.c b/hw/xfree86/exa/examodule.c index 8cb6a7aa4..0b0bf8118 100644 --- a/hw/xfree86/exa/examodule.c +++ b/hw/xfree86/exa/examodule.c @@ -182,16 +182,18 @@ exaDDXDriverInit(ScreenPtr pScreen) } static XF86ModuleVersionInfo exaVersRec = { - "exa", - MODULEVENDORSTRING, - MODINFOSTRING1, - MODINFOSTRING2, - XORG_VERSION_CURRENT, - EXA_VERSION_MAJOR, EXA_VERSION_MINOR, EXA_VERSION_RELEASE, - ABI_CLASS_VIDEODRV, /* requires the video driver ABI */ - ABI_VIDEODRV_VERSION, - MOD_CLASS_NONE, - {0, 0, 0, 0} + .modname = "exa", + .vendor = MODULEVENDORSTRING, + ._modinfo1_ = MODINFOSTRING1, + ._modinfo2_ = MODINFOSTRING2, + .xf86version = XORG_VERSION_CURRENT, + .majorversion = EXA_VERSION_MAJOR, + .minorversion = EXA_VERSION_MINOR, + .patchlevel = EXA_VERSION_RELEASE, + .abiclass = ABI_CLASS_VIDEODRV, + .abiversion = ABI_VIDEODRV_VERSION, }; -_X_EXPORT XF86ModuleData exaModuleData = { &exaVersRec, NULL, NULL }; +_X_EXPORT XF86ModuleData exaModuleData = { + .vers = &exaVersRec +};