xfree86: fbdevhw: 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
d87e93bf40
commit
c862cf3c3a
|
@ -23,22 +23,20 @@
|
||||||
#define PAGE_MASK (~(getpagesize() - 1))
|
#define PAGE_MASK (~(getpagesize() - 1))
|
||||||
|
|
||||||
static XF86ModuleVersionInfo fbdevHWVersRec = {
|
static XF86ModuleVersionInfo fbdevHWVersRec = {
|
||||||
"fbdevhw",
|
.modname = "fbdevhw",
|
||||||
MODULEVENDORSTRING,
|
.vendor = MODULEVENDORSTRING,
|
||||||
MODINFOSTRING1,
|
._modinfo1_ = MODINFOSTRING1,
|
||||||
MODINFOSTRING2,
|
._modinfo2_ = MODINFOSTRING2,
|
||||||
XORG_VERSION_CURRENT,
|
.xf86version = XORG_VERSION_CURRENT,
|
||||||
0, 0, 2,
|
.majorversion = 0,
|
||||||
ABI_CLASS_VIDEODRV,
|
.minorversion = 0,
|
||||||
ABI_VIDEODRV_VERSION,
|
.patchlevel = 2,
|
||||||
MOD_CLASS_NONE,
|
.abiclass = ABI_CLASS_VIDEODRV,
|
||||||
{0, 0, 0, 0}
|
.abiversion = ABI_VIDEODRV_VERSION,
|
||||||
};
|
};
|
||||||
|
|
||||||
_X_EXPORT XF86ModuleData fbdevhwModuleData = {
|
_X_EXPORT XF86ModuleData fbdevhwModuleData = {
|
||||||
&fbdevHWVersRec,
|
.vers = &fbdevHWVersRec
|
||||||
NULL,
|
|
||||||
NULL
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
Loading…
Reference in New Issue