@@ -42,29 +42,27 @@ const unsigned int NUM_DEV[ID_DEV_SIZE] = {
42
42
* --- Device Names ---
43
43
* used in rtmouse_dev.c
44
44
*/
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" };
54
53
55
54
/*
56
55
* --- Device Names(+%u) ---
57
56
* used in rtmouse_dev.c
58
57
*/
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" };
68
66
69
67
// used in by rtmouse_dev.c and cleanup_each_dev()
70
68
int _major_dev [ID_DEV_SIZE ] = {
0 commit comments