Skip to content

Commit f2e86ce

Browse files
committed
lint対象を修正&インデント修正
1 parent bd7640b commit f2e86ce

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.test/lint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ SRC_DIR=$(cd $(dirname ${BASH_SOURCE:-$0}); cd ../; pwd)
77
lint_driver () {
88
pushd $SRC_DIR/src/drivers
99
python3 $SRC_DIR/.test/bin/run-clang-format.py rtmouse_main.c
10+
python3 $SRC_DIR/.test/bin/run-clang-format.py rtmouse_dev.c
1011
python3 $SRC_DIR/.test/bin/run-clang-format.py rtmouse.h
1112
popd
1213
}

src/drivers/rtmouse_main.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@ unsigned int NUM_DEV[ID_DEV_SIZE] = {
3737

3838
/* --- Device Names --- */
3939
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"};
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"};
4747

4848
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"};
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"};
5656

5757
// used in by register_dev() and cleanup_each_dev()
5858
int _major_dev[ID_DEV_SIZE] = {

0 commit comments

Comments
 (0)