Skip to content

Commit a556d62

Browse files
committed
lintに対応して修正
1 parent 77bb477 commit a556d62

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

src/drivers/rtmouse_main.c

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,27 @@ const unsigned int NUM_DEV[ID_DEV_SIZE] = {
4242
* --- Device Names ---
4343
* used in rtmouse_dev.c
4444
*/
45-
const char *NAME_DEV[ID_DEV_SIZE] = {
46-
[ID_DEV_LED] = "rtled",
47-
[ID_DEV_SWITCH] = "rtswitch",
48-
[ID_DEV_SENSOR] = "rtlightsensor",
49-
[ID_DEV_BUZZER] = "rtbuzzer",
50-
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r",
51-
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l",
52-
[ID_DEV_MOTOREN] = "rtmotoren",
53-
[ID_DEV_MOTOR] = "rtmotor"};
45+
const char *NAME_DEV[ID_DEV_SIZE] = {[ID_DEV_LED] = "rtled",
46+
[ID_DEV_SWITCH] = "rtswitch",
47+
[ID_DEV_SENSOR] = "rtlightsensor",
48+
[ID_DEV_BUZZER] = "rtbuzzer",
49+
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r",
50+
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l",
51+
[ID_DEV_MOTOREN] = "rtmotoren",
52+
[ID_DEV_MOTOR] = "rtmotor"};
5453

5554
/*
5655
* --- Device Names(+%u) ---
5756
* used in rtmouse_dev.c
5857
*/
59-
const char *NAME_DEV_U[ID_DEV_SIZE] = {
60-
[ID_DEV_LED] = "rtled%u",
61-
[ID_DEV_SWITCH] = "rtswitch%u",
62-
[ID_DEV_SENSOR] = "rtlightsensor%u",
63-
[ID_DEV_BUZZER] = "rtbuzzer%u",
64-
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r%u",
65-
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l%u",
66-
[ID_DEV_MOTOREN] = "rtmotoren%u",
67-
[ID_DEV_MOTOR] = "rtmotor%u"};
58+
const char *NAME_DEV_U[ID_DEV_SIZE] = {[ID_DEV_LED] = "rtled%u",
59+
[ID_DEV_SWITCH] = "rtswitch%u",
60+
[ID_DEV_SENSOR] = "rtlightsensor%u",
61+
[ID_DEV_BUZZER] = "rtbuzzer%u",
62+
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r%u",
63+
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l%u",
64+
[ID_DEV_MOTOREN] = "rtmotoren%u",
65+
[ID_DEV_MOTOR] = "rtmotor%u"};
6866

6967
// used in by rtmouse_dev.c and cleanup_each_dev()
7068
int _major_dev[ID_DEV_SIZE] = {

0 commit comments

Comments
 (0)