Skip to content

Commit 39b83ff

Browse files
QuzarDCQuzarDC
authored andcommitted
maple: Clean up driver struct initializations.
1 parent 2af7e6c commit 39b83ff

6 files changed

Lines changed: 6 additions & 18 deletions

File tree

kernel/arch/dreamcast/hardware/maple/controller.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,7 @@ static maple_driver_t controller_drv = {
225225
.functions = MAPLE_FUNC_CONTROLLER,
226226
.name = "Controller Driver",
227227
.periodic = cont_periodic,
228-
.status_size = sizeof(cont_state_t),
229-
.attach = NULL,
230-
.detach = NULL
228+
.status_size = sizeof(cont_state_t)
231229
};
232230

233231
/* Add the controller to the driver chain */

kernel/arch/dreamcast/hardware/maple/keyboard.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,7 @@ static maple_driver_t kbd_drv = {
808808
.name = "Keyboard Driver",
809809
.periodic = kbd_periodic,
810810
.status_size = sizeof(kbd_state_private_t),
811-
.attach = kbd_attach,
812-
.detach = NULL
811+
.attach = kbd_attach
813812
};
814813

815814
/* Add the keyboard to the driver chain */

kernel/arch/dreamcast/hardware/maple/lightgun.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
/* Device Driver Struct */
1414
static maple_driver_t lightgun_drv = {
1515
.functions = MAPLE_FUNC_LIGHTGUN,
16-
.name = "Lightgun",
17-
.periodic = NULL,
18-
.attach = NULL,
19-
.detach = NULL
16+
.name = "Lightgun"
2017
};
2118

2219
/* Add the lightgun to the driver chain */

kernel/arch/dreamcast/hardware/maple/mouse.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ static maple_driver_t mouse_drv = {
8787
.functions = MAPLE_FUNC_MOUSE,
8888
.name = "Mouse Driver",
8989
.periodic = mouse_periodic,
90-
.status_size = sizeof(mouse_state_t),
91-
.attach = NULL,
92-
.detach = NULL
90+
.status_size = sizeof(mouse_state_t)
9391
};
9492

9593
/* Add the mouse to the driver chain */

kernel/arch/dreamcast/hardware/maple/purupuru.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ int purupuru_rumble(maple_device_t *dev, const purupuru_effect_t *effect) {
5555
/* Device Driver Struct */
5656
static maple_driver_t purupuru_drv = {
5757
.functions = MAPLE_FUNC_PURUPURU,
58-
.name = "PuruPuru (Vibration) Pack",
59-
.periodic = NULL,
60-
.attach = NULL,
61-
.detach = NULL
58+
.name = "PuruPuru (Vibration) Pack"
6259
};
6360

6461
/* Add the purupuru to the driver chain */

kernel/arch/dreamcast/hardware/maple/sip.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,7 @@ static maple_driver_t sip_drv = {
285285
.name = "Sound Input Peripheral",
286286
.periodic = sip_periodic,
287287
.status_size = sizeof(sip_state_t),
288-
.attach = sip_attach,
289-
.detach = NULL
288+
.attach = sip_attach
290289
};
291290

292291
/* Add the SIP to the driver chain */

0 commit comments

Comments
 (0)