mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
kdrive: use designated struct initializers
Easier to read and no need to care about field order anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt, metux IT consult .
parent
c42e31bbee
commit
4e1955815f
@@ -1305,13 +1305,13 @@ MouseFini(KdPointerInfo * pi)
|
||||
ephyrMouse = NULL;
|
||||
}
|
||||
|
||||
/* *must not* be const/readonly, because some fields are written later */
|
||||
KdPointerDriver EphyrMouseDriver = {
|
||||
"ephyr",
|
||||
MouseInit,
|
||||
MouseEnable,
|
||||
MouseDisable,
|
||||
MouseFini,
|
||||
NULL,
|
||||
.name = "ephyr",
|
||||
.Init = MouseInit,
|
||||
.Enable = MouseEnable,
|
||||
.Disable = MouseDisable,
|
||||
.Fini = MouseFini,
|
||||
};
|
||||
|
||||
/* Keyboard */
|
||||
@@ -1378,13 +1378,13 @@ EphyrKeyboardBell(KdKeyboardInfo * ki, int volume, int frequency, int duration)
|
||||
{
|
||||
}
|
||||
|
||||
/* *must not* be const/readonly, because some fields are written later */
|
||||
KdKeyboardDriver EphyrKeyboardDriver = {
|
||||
"ephyr",
|
||||
EphyrKeyboardInit,
|
||||
EphyrKeyboardEnable,
|
||||
EphyrKeyboardLeds,
|
||||
EphyrKeyboardBell,
|
||||
EphyrKeyboardDisable,
|
||||
EphyrKeyboardFini,
|
||||
NULL,
|
||||
.name = "ephyr",
|
||||
.Init = EphyrKeyboardInit,
|
||||
.Enable = EphyrKeyboardEnable,
|
||||
.Leds = EphyrKeyboardLeds,
|
||||
.Bell = EphyrKeyboardBell,
|
||||
.Disable = EphyrKeyboardDisable,
|
||||
.Fini = EphyrKeyboardFini,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user