diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-12-17 13:43:17 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-12-19 00:12:28 +0000 |
commit | 6ab8e91658f1efc894b648cc0748af8d804915e4 (patch) | |
tree | c33da7914793452ecb37084e505230171d4eff9e /test | |
parent | e5935f17d1798a1f19c6003e57f140446774484f (diff) | |
download | chrome-ec-6ab8e91658f1efc894b648cc0748af8d804915e4.tar.gz |
cleanup: Remove checkpatch warnings
This make minor syntactic changes and renames some camel-cased symbols
to keep checkpatch from complaining. The goal is to reduce the
temptation to use 'repo upload --no-verify'.
This is a big furball of find/replace, but no functional changes.
BUG=chromium:322144
BRANCH=none
TEST=build all boards; pass unit tests
Change-Id: I0269b7dd95836ef9a6e33f88c003ab0f24f842a0
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/180495
Diffstat (limited to 'test')
-rw-r--r-- | test/pingpong.c | 4 | ||||
-rw-r--r-- | test/pingpong.tasklist | 8 | ||||
-rw-r--r-- | test/powerdemo.c | 2 | ||||
-rw-r--r-- | test/stress.c | 2 | ||||
-rw-r--r-- | test/timer_dos.c | 2 | ||||
-rw-r--r-- | test/timer_dos.tasklist | 8 |
6 files changed, 13 insertions, 13 deletions
diff --git a/test/pingpong.c b/test/pingpong.c index 852dbc3bdf..c11267db74 100644 --- a/test/pingpong.c +++ b/test/pingpong.c @@ -16,7 +16,7 @@ static int wake_count[3]; -int TaskAbc(void *data) +int task_abc(void *data) { int myid = task_get_current() - TASK_ID_TESTA; task_id_t next = task_get_current() + 1; @@ -45,7 +45,7 @@ int TaskAbc(void *data) return EC_SUCCESS; } -int TaskTick(void *data) +int task_tick(void *data) { task_wait_event(-1); ccprintf("\n[starting Task T]\n"); diff --git a/test/pingpong.tasklist b/test/pingpong.tasklist index 1dd8aa3b91..84cf7b11d4 100644 --- a/test/pingpong.tasklist +++ b/test/pingpong.tasklist @@ -15,7 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TEST_TASK_LIST \ - TASK_TEST(TESTA, TaskAbc, NULL, TASK_STACK_SIZE) \ - TASK_TEST(TESTB, TaskAbc, NULL, TASK_STACK_SIZE) \ - TASK_TEST(TESTC, TaskAbc, NULL, TASK_STACK_SIZE) \ - TASK_TEST(TICK, TaskTick, NULL, 256) + TASK_TEST(TESTA, task_abc, NULL, TASK_STACK_SIZE) \ + TASK_TEST(TESTB, task_abc, NULL, TASK_STACK_SIZE) \ + TASK_TEST(TESTC, task_abc, NULL, TASK_STACK_SIZE) \ + TASK_TEST(TICK, task_tick, NULL, 256) diff --git a/test/powerdemo.c b/test/powerdemo.c index a5e79e0366..46bc3d8203 100644 --- a/test/powerdemo.c +++ b/test/powerdemo.c @@ -61,7 +61,7 @@ static void __set_state(int new_state, int pin_value, int timeout) int power_demo_init(void) { - volatile uint32_t scratch __attribute__((unused)); + volatile uint32_t scratch __attribute__((unused)); /* Set up TIMER1 as our state timer */ /* Enable TIMER1 clock */ diff --git a/test/stress.c b/test/stress.c index 36afd5a587..a51ab416eb 100644 --- a/test/stress.c +++ b/test/stress.c @@ -128,7 +128,7 @@ __attribute__((weak)) int adc_read_all_channels(int *data) int i; int rv = EC_SUCCESS; - for (i = 0 ; i < ADC_CH_COUNT; ++i) { + for (i = 0; i < ADC_CH_COUNT; ++i) { data[i] = adc_read_channel(i); if (data[i] == ADC_READ_ERROR) rv = EC_ERROR_UNKNOWN; diff --git a/test/timer_dos.c b/test/timer_dos.c index 73b06d681e..69803f0a31 100644 --- a/test/timer_dos.c +++ b/test/timer_dos.c @@ -22,7 +22,7 @@ static uint32_t prng(uint32_t x) #define TEST_TIME (3 * SECOND) -int TaskTimer(void *seed) +int task_timer(void *seed) { uint32_t num = (uint32_t)seed; task_id_t id = task_get_current(); diff --git a/test/timer_dos.tasklist b/test/timer_dos.tasklist index d34fd59010..3ebce139e2 100644 --- a/test/timer_dos.tasklist +++ b/test/timer_dos.tasklist @@ -15,7 +15,7 @@ * 's' is the stack size in bytes; must be a multiple of 8 */ #define CONFIG_TEST_TASK_LIST \ - TASK_TEST(TMRA, TaskTimer, (void *)1234, TASK_STACK_SIZE) \ - TASK_TEST(TMRB, TaskTimer, (void *)5678, TASK_STACK_SIZE) \ - TASK_TEST(TMRC, TaskTimer, (void *)8462, TASK_STACK_SIZE) \ - TASK_TEST(TMRD, TaskTimer, (void *)3719, TASK_STACK_SIZE) + TASK_TEST(TMRA, task_timer, (void *)1234, TASK_STACK_SIZE) \ + TASK_TEST(TMRB, task_timer, (void *)5678, TASK_STACK_SIZE) \ + TASK_TEST(TMRC, task_timer, (void *)8462, TASK_STACK_SIZE) \ + TASK_TEST(TMRD, task_timer, (void *)3719, TASK_STACK_SIZE) |