Skip to content

Commit c680610

Browse files
committed
lintに対応して修正
1 parent b2d7b7d commit c680610

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

src/drivers/rtmouse_main.c

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,25 @@ static const unsigned int NUM_DEV[ID_DEV_SIZE] = {
3636
[ID_DEV_MOTOREN] = 1, [ID_DEV_MOTOR] = 1, [ID_DEV_CNT] = 2};
3737

3838
/* --- Device Names --- */
39-
static const char *NAME_DEV[ID_DEV_SIZE] = {[ID_DEV_LED] = "rtled",
40-
[ID_DEV_SWITCH] = "rtswitch",
41-
[ID_DEV_SENSOR] = "rtlightsensor",
42-
[ID_DEV_BUZZER] = "rtbuzzer",
43-
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r",
44-
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l",
45-
[ID_DEV_MOTOREN] = "rtmotoren",
46-
[ID_DEV_MOTOR] = "rtmotor"};
47-
48-
static const char *NAME_DEV_U[ID_DEV_SIZE] = {[ID_DEV_LED] = "rtled%u",
49-
[ID_DEV_SWITCH] = "rtswitch%u",
50-
[ID_DEV_SENSOR] = "rtlightsensor%u",
51-
[ID_DEV_BUZZER] = "rtbuzzer%u",
52-
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r%u",
53-
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l%u",
54-
[ID_DEV_MOTOREN] = "rtmotoren%u",
55-
[ID_DEV_MOTOR] = "rtmotor%u"};
39+
static const char *NAME_DEV[ID_DEV_SIZE] = {
40+
[ID_DEV_LED] = "rtled",
41+
[ID_DEV_SWITCH] = "rtswitch",
42+
[ID_DEV_SENSOR] = "rtlightsensor",
43+
[ID_DEV_BUZZER] = "rtbuzzer",
44+
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r",
45+
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l",
46+
[ID_DEV_MOTOREN] = "rtmotoren",
47+
[ID_DEV_MOTOR] = "rtmotor"};
48+
49+
static const char *NAME_DEV_U[ID_DEV_SIZE] = {
50+
[ID_DEV_LED] = "rtled%u",
51+
[ID_DEV_SWITCH] = "rtswitch%u",
52+
[ID_DEV_SENSOR] = "rtlightsensor%u",
53+
[ID_DEV_BUZZER] = "rtbuzzer%u",
54+
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r%u",
55+
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l%u",
56+
[ID_DEV_MOTOREN] = "rtmotoren%u",
57+
[ID_DEV_MOTOR] = "rtmotor%u"};
5658

5759
// used in by register_dev() and cleanup_each_dev()
5860
static int _major_dev[ID_DEV_SIZE] = {

0 commit comments

Comments
 (0)