Skip to content

Commit

Permalink
lintに対応して修正
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Nov 7, 2024
1 parent 77bb477 commit a556d62
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions src/drivers/rtmouse_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,27 @@ const unsigned int NUM_DEV[ID_DEV_SIZE] = {
* --- Device Names ---
* used in rtmouse_dev.c
*/
const char *NAME_DEV[ID_DEV_SIZE] = {
[ID_DEV_LED] = "rtled",
[ID_DEV_SWITCH] = "rtswitch",
[ID_DEV_SENSOR] = "rtlightsensor",
[ID_DEV_BUZZER] = "rtbuzzer",
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r",
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l",
[ID_DEV_MOTOREN] = "rtmotoren",
[ID_DEV_MOTOR] = "rtmotor"};
const char *NAME_DEV[ID_DEV_SIZE] = {[ID_DEV_LED] = "rtled",
[ID_DEV_SWITCH] = "rtswitch",
[ID_DEV_SENSOR] = "rtlightsensor",
[ID_DEV_BUZZER] = "rtbuzzer",
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r",
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l",
[ID_DEV_MOTOREN] = "rtmotoren",
[ID_DEV_MOTOR] = "rtmotor"};

/*
* --- Device Names(+%u) ---
* used in rtmouse_dev.c
*/
const char *NAME_DEV_U[ID_DEV_SIZE] = {
[ID_DEV_LED] = "rtled%u",
[ID_DEV_SWITCH] = "rtswitch%u",
[ID_DEV_SENSOR] = "rtlightsensor%u",
[ID_DEV_BUZZER] = "rtbuzzer%u",
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r%u",
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l%u",
[ID_DEV_MOTOREN] = "rtmotoren%u",
[ID_DEV_MOTOR] = "rtmotor%u"};
const char *NAME_DEV_U[ID_DEV_SIZE] = {[ID_DEV_LED] = "rtled%u",
[ID_DEV_SWITCH] = "rtswitch%u",
[ID_DEV_SENSOR] = "rtlightsensor%u",
[ID_DEV_BUZZER] = "rtbuzzer%u",
[ID_DEV_MOTORRAWR] = "rtmotor_raw_r%u",
[ID_DEV_MOTORRAWL] = "rtmotor_raw_l%u",
[ID_DEV_MOTOREN] = "rtmotoren%u",
[ID_DEV_MOTOR] = "rtmotor%u"};

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

0 comments on commit a556d62

Please sign in to comment.