test/lightbar.c: Format with clang-format
BRANCH=none
TEST=none
@@ -20,9 +20,8 @@ static int get_seq(void)
/* Get the state */
memset(&resp, 0, sizeof(resp));
params.cmd = LIGHTBAR_CMD_GET_SEQ;
- rv = test_send_host_command(EC_CMD_LIGHTBAR_CMD, 0,
- &params, sizeof(params),
- &resp, sizeof(resp));
+ rv = test_send_host_command(EC_CMD_LIGHTBAR_CMD, 0, &params,
+ sizeof(params), &resp, sizeof(resp));
if (rv != EC_RES_SUCCESS) {
ccprintf("%s:%s(): rv = %d\n", __FILE__, __func__, rv);
return -1;
@@ -41,9 +40,8 @@ static int set_seq(int s)
memset(&resp, 0, sizeof(resp));
params.cmd = LIGHTBAR_CMD_SEQ;
params.seq.num = s;
- rv = test_send_host_command(EC_CMD_LIGHTBAR_CMD, 0,
- &params, sizeof(params),
- &resp, sizeof(resp));
+ rv = test_send_host_command(EC_CMD_LIGHTBAR_CMD, 0, &params,
+ sizeof(params), &resp, sizeof(resp));
if (rv != EC_RES_SUCCESS) {
ccprintf("%s:%s(): rv = %d\n", __FILE__, __func__, rv);
return -1;
@@ -169,9 +167,8 @@ test_static int test_stop_timeout(void)
TEST_ASSERT(set_seq(i) == EC_RES_SUCCESS);
usleep(SECOND);
/* What happened? */
- if (i == LIGHTBAR_RUN ||
- i == LIGHTBAR_S0S3 || i == LIGHTBAR_S3 ||
- i == LIGHTBAR_S3S5 || i == LIGHTBAR_S5)
+ if (i == LIGHTBAR_RUN || i == LIGHTBAR_S0S3 ||
+ i == LIGHTBAR_S3 || i == LIGHTBAR_S3S5 || i == LIGHTBAR_S5)
/* RUN or shutdown sequences should stop it */
TEST_ASSERT(get_seq() == LIGHTBAR_S0);
else
