diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-06-01 14:39:26 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-02 16:58:21 +0000 |
commit | e5dc5e7ae3679f92e3982be3dd294ce9e3c8b597 (patch) | |
tree | 52ceebdaf09fc7e84690bc3b5a8cf786a91645d7 /extra | |
parent | bc8dd35b3a0d5b24ca5df78ab9b308f2cf480a03 (diff) | |
download | chrome-ec-e5dc5e7ae3679f92e3982be3dd294ce9e3c8b597.tar.gz |
task: change task_set_event return type to void
No implementation does nothing other than return 0 on task_set_event(),
change the return type to void so that the API is clear.
BRANCH=none
BUG=none
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I88b20f53aa6dffa291ce78f4776888b21985f57f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3683769
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'extra')
-rw-r--r-- | extra/lightbar/main.c | 3 | ||||
-rw-r--r-- | extra/lightbar/simulation.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/extra/lightbar/main.c b/extra/lightbar/main.c index 5acf3d427a..ef011d35f1 100644 --- a/extra/lightbar/main.c +++ b/extra/lightbar/main.c @@ -95,14 +95,13 @@ uint32_t task_wait_event(int timeout_us) return event; } -uint32_t task_set_event(task_id_t tskid, /* always LIGHTBAR */ +void task_set_event(task_id_t tskid, /* always LIGHTBAR */ uint32_t event) { pthread_mutex_lock(&task_mutex); task_event = event; pthread_cond_signal(&task_cond); pthread_mutex_unlock(&task_mutex); - return 0; } diff --git a/extra/lightbar/simulation.h b/extra/lightbar/simulation.h index 4df7b69411..edbe5f340e 100644 --- a/extra/lightbar/simulation.h +++ b/extra/lightbar/simulation.h @@ -97,7 +97,7 @@ struct host_cmd_handler_args { /* EC functions that we have to provide */ uint32_t task_wait_event(int timeout_us); -uint32_t task_set_event(task_id_t tskid, uint32_t event); +void task_set_event(task_id_t tskid, uint32_t event); timestamp_t get_time(void); int system_add_jump_tag(uint16_t tag, int version, int size, const void *data); uint8_t *system_get_jump_tag(uint16_t tag, int *version, int *size); |