@@ -36,23 +36,25 @@ static const unsigned int NUM_DEV[ID_DEV_SIZE] = {
36
36
[ID_DEV_MOTOREN ] = 1 , [ID_DEV_MOTOR ] = 1 , [ID_DEV_CNT ] = 2 };
37
37
38
38
/* --- 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" };
56
58
57
59
// used in by register_dev() and cleanup_each_dev()
58
60
static int _major_dev [ID_DEV_SIZE ] = {
0 commit comments