mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-23 07:30:42 +02:00
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>
(cherry picked from commit c862cf3c3a)
This commit is contained in:
parent
eaabd43c7e
commit
6775511085
1 changed files with 11 additions and 13 deletions
|
|
@ -23,22 +23,20 @@
|
|||
#define PAGE_MASK (~(getpagesize() - 1))
|
||||
|
||||
static XF86ModuleVersionInfo fbdevHWVersRec = {
|
||||
"fbdevhw",
|
||||
MODULEVENDORSTRING,
|
||||
MODINFOSTRING1,
|
||||
MODINFOSTRING2,
|
||||
XORG_VERSION_CURRENT,
|
||||
0, 0, 2,
|
||||
ABI_CLASS_VIDEODRV,
|
||||
ABI_VIDEODRV_VERSION,
|
||||
MOD_CLASS_NONE,
|
||||
{0, 0, 0, 0}
|
||||
.modname = "fbdevhw",
|
||||
.vendor = MODULEVENDORSTRING,
|
||||
._modinfo1_ = MODINFOSTRING1,
|
||||
._modinfo2_ = MODINFOSTRING2,
|
||||
.xf86version = XORG_VERSION_CURRENT,
|
||||
.majorversion = 0,
|
||||
.minorversion = 0,
|
||||
.patchlevel = 2,
|
||||
.abiclass = ABI_CLASS_VIDEODRV,
|
||||
.abiversion = ABI_VIDEODRV_VERSION,
|
||||
};
|
||||
|
||||
_X_EXPORT XF86ModuleData fbdevhwModuleData = {
|
||||
&fbdevHWVersRec,
|
||||
NULL,
|
||||
NULL
|
||||
.vers = &fbdevHWVersRec
|
||||
};
|
||||
|
||||
#include <fcntl.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue