kdrive: ephyr: use c99 struct initialization
For better readability and robustness against future changes, it's better to use named struct initializers instead of array-like lists. Signed-off-by: stefan11111 <stefan11111@shitposting.expert> Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
6c2f17a5e0
commit
3d266528a9
|
@ -1435,12 +1435,11 @@ MouseFini(KdPointerInfo * pi)
|
||||||
}
|
}
|
||||||
|
|
||||||
KdPointerDriver EphyrMouseDriver = {
|
KdPointerDriver EphyrMouseDriver = {
|
||||||
"ephyr",
|
.name = "ephyr",
|
||||||
MouseInit,
|
.Init = MouseInit,
|
||||||
MouseEnable,
|
.Enable = MouseEnable,
|
||||||
MouseDisable,
|
.Disable = MouseDisable,
|
||||||
MouseFini,
|
.Fini = MouseFini,
|
||||||
NULL,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Keyboard */
|
/* Keyboard */
|
||||||
|
@ -1509,12 +1508,11 @@ EphyrKeyboardBell(KdKeyboardInfo * ki, int volume, int frequency, int duration)
|
||||||
}
|
}
|
||||||
|
|
||||||
KdKeyboardDriver EphyrKeyboardDriver = {
|
KdKeyboardDriver EphyrKeyboardDriver = {
|
||||||
"ephyr",
|
.name = "ephyr",
|
||||||
EphyrKeyboardInit,
|
.Init = EphyrKeyboardInit,
|
||||||
EphyrKeyboardEnable,
|
.Enable = EphyrKeyboardEnable,
|
||||||
EphyrKeyboardLeds,
|
.Leds = EphyrKeyboardLeds,
|
||||||
EphyrKeyboardBell,
|
.Bell = EphyrKeyboardBell,
|
||||||
EphyrKeyboardDisable,
|
.Disable = EphyrKeyboardDisable,
|
||||||
EphyrKeyboardFini,
|
.Fini = EphyrKeyboardFini,
|
||||||
NULL,
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -390,23 +390,19 @@ OsVendorInit(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
KdCardFuncs ephyrFuncs = {
|
KdCardFuncs ephyrFuncs = {
|
||||||
ephyrCardInit, /* cardinit */
|
.cardinit = ephyrCardInit,
|
||||||
ephyrScreenInitialize, /* scrinit */
|
.scrinit = ephyrScreenInitialize,
|
||||||
ephyrInitScreen, /* initScreen */
|
.initScreen = ephyrInitScreen,
|
||||||
ephyrFinishInitScreen, /* finishInitScreen */
|
.finishInitScreen = ephyrFinishInitScreen,
|
||||||
ephyrCreateResources, /* createRes */
|
.createRes = ephyrCreateResources,
|
||||||
ephyrScreenFini, /* scrfini */
|
|
||||||
ephyrCardFini, /* cardfini */
|
|
||||||
|
|
||||||
0, /* initCursor */
|
.scrfini = ephyrScreenFini,
|
||||||
|
.cardfini = ephyrCardFini,
|
||||||
|
|
||||||
0, /* initAccel */
|
/* no cursor or accel funcs here */
|
||||||
0, /* enableAccel */
|
|
||||||
0, /* disableAccel */
|
|
||||||
0, /* finiAccel */
|
|
||||||
|
|
||||||
ephyrGetColors, /* getColors */
|
.getColors = ephyrGetColors,
|
||||||
ephyrPutColors, /* putColors */
|
.putColors = ephyrPutColors,
|
||||||
|
|
||||||
ephyrCloseScreen, /* closeScreen */
|
.closeScreen = ephyrCloseScreen,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue