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 <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1788>
This commit is contained in:
parent
c862cf3c3a
commit
c8ad9c6567
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue