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 = {
|
static XF86ModuleVersionInfo exaVersRec = {
|
||||||
"exa",
|
.modname = "exa",
|
||||||
MODULEVENDORSTRING,
|
.vendor = MODULEVENDORSTRING,
|
||||||
MODINFOSTRING1,
|
._modinfo1_ = MODINFOSTRING1,
|
||||||
MODINFOSTRING2,
|
._modinfo2_ = MODINFOSTRING2,
|
||||||
XORG_VERSION_CURRENT,
|
.xf86version = XORG_VERSION_CURRENT,
|
||||||
EXA_VERSION_MAJOR, EXA_VERSION_MINOR, EXA_VERSION_RELEASE,
|
.majorversion = EXA_VERSION_MAJOR,
|
||||||
ABI_CLASS_VIDEODRV, /* requires the video driver ABI */
|
.minorversion = EXA_VERSION_MINOR,
|
||||||
ABI_VIDEODRV_VERSION,
|
.patchlevel = EXA_VERSION_RELEASE,
|
||||||
MOD_CLASS_NONE,
|
.abiclass = ABI_CLASS_VIDEODRV,
|
||||||
{0, 0, 0, 0}
|
.abiversion = ABI_VIDEODRV_VERSION,
|
||||||
};
|
};
|
||||||
|
|
||||||
_X_EXPORT XF86ModuleData exaModuleData = { &exaVersRec, NULL, NULL };
|
_X_EXPORT XF86ModuleData exaModuleData = {
|
||||||
|
.vers = &exaVersRec
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue