Skip to content

Commit

Permalink
lintに対応して修正
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Nov 5, 2024
1 parent b2d7b7d commit c680610
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions src/drivers/rtmouse_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,25 @@ static const unsigned int NUM_DEV[ID_DEV_SIZE] = {
[ID_DEV_MOTOREN] = 1, [ID_DEV_MOTOR] = 1, [ID_DEV_CNT] = 2};

/* --- Device Names --- */
static 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"};

static 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"};
static 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"};

static 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 register_dev() and cleanup_each_dev()
static int _major_dev[ID_DEV_SIZE] = {
Expand Down

0 comments on commit c680610

Please sign in to comment.