diff options
author | Stefan Reinauer <reinauer@google.com> | 2017-08-04 16:20:52 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-08 14:56:13 -0700 |
commit | 9939855231350875737f9b05e208454451e3bb4a (patch) | |
tree | 3a93c6fb463395bc45b65950f3d8545e73521b86 /common | |
parent | 25d281a42bd1e3cbf997e658ff9ae784bbecea20 (diff) | |
download | chrome-ec-9939855231350875737f9b05e208454451e3bb4a.tar.gz |
Fix inconsistent task function declarations
Tasks are defined inconsistently across the code base.
Signed-off-by: Stefan Reinauer <reinauer@google.com>
BRANCH=none
TEST=make buildall -j, also verify kevin boots to OS
BUG=none
Change-Id: I19a076395a9a8ee1e457e67a89d80d2f70277c97
Reviewed-on: https://chromium-review.googlesource.com/602739
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/als.c | 2 | ||||
-rw-r--r-- | common/charge_ramp.c | 2 | ||||
-rw-r--r-- | common/charge_state_v2.c | 2 | ||||
-rw-r--r-- | common/console.c | 2 | ||||
-rw-r--r-- | common/hooks.c | 2 | ||||
-rw-r--r-- | common/host_command.c | 2 | ||||
-rw-r--r-- | common/host_command_pd.c | 2 | ||||
-rw-r--r-- | common/keyboard_8042.c | 2 | ||||
-rw-r--r-- | common/keyboard_scan.c | 2 | ||||
-rw-r--r-- | common/motion_sense.c | 2 | ||||
-rw-r--r-- | common/power_button_x86.c | 2 | ||||
-rw-r--r-- | common/rwsig.c | 2 | ||||
-rw-r--r-- | common/usb_pd_protocol.c | 2 | ||||
-rw-r--r-- | common/usb_pd_tcpc.c | 2 |
14 files changed, 14 insertions, 14 deletions
diff --git a/common/als.c b/common/als.c index 6e80b23548..c671aacf12 100644 --- a/common/als.c +++ b/common/als.c @@ -28,7 +28,7 @@ int als_read(enum als_id id, int *lux) return als[id].read(lux, af); } -void als_task(void) +void als_task(void *u) { int i, val; uint16_t *mapped = (uint16_t *)host_get_memmap(EC_MEMMAP_ALS); diff --git a/common/charge_ramp.c b/common/charge_ramp.c index a5928983fc..27b92f55f0 100644 --- a/common/charge_ramp.c +++ b/common/charge_ramp.c @@ -145,7 +145,7 @@ int chg_ramp_is_stable(void) return ramp_st == CHG_RAMP_STABLE; } -void chg_ramp_task(void) +void chg_ramp_task(void *u) { int task_wait_time = -1; int i, lim; diff --git a/common/charge_state_v2.c b/common/charge_state_v2.c index 7464e446fc..56971cac48 100644 --- a/common/charge_state_v2.c +++ b/common/charge_state_v2.c @@ -614,7 +614,7 @@ static int get_desired_input_current(enum battery_present batt_present, } /* Main loop */ -void charger_task(void) +void charger_task(void *u) { int sleep_usec; int need_static = 1; diff --git a/common/console.c b/common/console.c index bb4195d584..0a8fc3c679 100644 --- a/common/console.c +++ b/common/console.c @@ -650,7 +650,7 @@ void console_has_input(void) task_wake(TASK_ID_CONSOLE); } -void console_task(void) +void console_task(void *u) { console_init(); diff --git a/common/hooks.c b/common/hooks.c index b8725a2467..27ee1c422f 100644 --- a/common/hooks.c +++ b/common/hooks.c @@ -162,7 +162,7 @@ int hook_call_deferred(const struct deferred_data *data, int us) return EC_SUCCESS; } -void hook_task(void) +void hook_task(void *u) { /* Periodic hooks will be called first time through the loop */ static uint64_t last_second = -SECOND; diff --git a/common/host_command.c b/common/host_command.c index 825515a66f..912a7b0ff4 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -414,7 +414,7 @@ static void host_command_init(void) #endif } -void host_command_task(void) +void host_command_task(void *u) { timestamp_t t0, t1, t_recess; t_recess.val = 0; diff --git a/common/host_command_pd.c b/common/host_command_pd.c index 2a60734570..a21ee33b94 100644 --- a/common/host_command_pd.c +++ b/common/host_command_pd.c @@ -207,7 +207,7 @@ static void pd_exchange_status(uint32_t ec_state) #endif /* USB_TCPM_WITH_OFF_CHIP_TCPC */ } -void pd_command_task(void) +void pd_command_task(void *u) { /* On startup exchange status with the PD */ pd_exchange_status(0); diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c index 834fcf866d..03e0540f42 100644 --- a/common/keyboard_8042.c +++ b/common/keyboard_8042.c @@ -834,7 +834,7 @@ static void keyboard_special(uint16_t k) } } -void keyboard_protocol_task(void) +void keyboard_protocol_task(void *u) { int wait = -1; int retries = 0; diff --git a/common/keyboard_scan.c b/common/keyboard_scan.c index c4053d583e..23925fc218 100644 --- a/common/keyboard_scan.c +++ b/common/keyboard_scan.c @@ -664,7 +664,7 @@ void keyboard_scan_init(void) #endif /* CONFIG_KEYBOARD_BOOT_KEYS */ } -void keyboard_scan_task(void) +void keyboard_scan_task(void *u) { timestamp_t poll_deadline, start; int wait_time; diff --git a/common/motion_sense.c b/common/motion_sense.c index 6f993b0f12..230523acee 100644 --- a/common/motion_sense.c +++ b/common/motion_sense.c @@ -718,7 +718,7 @@ static int motion_sense_process(struct motion_sensor_t *sensor, * 1 in the A/B(lid, display) and 1 in the C/D(base, keyboard) * Gyro Sensor (optional) */ -void motion_sense_task(void) +void motion_sense_task(void *u) { int i, ret, wait_us; timestamp_t ts_begin_task, ts_end_task; diff --git a/common/power_button_x86.c b/common/power_button_x86.c index 8cfb8e685b..19870e0e49 100644 --- a/common/power_button_x86.c +++ b/common/power_button_x86.c @@ -373,7 +373,7 @@ static void state_machine(uint64_t tnow) } } -void power_button_task(void) +void power_button_task(void *u) { uint64_t t; uint64_t tsleep; diff --git a/common/rwsig.c b/common/rwsig.c index 2d978e8e06..c2703234b6 100644 --- a/common/rwsig.c +++ b/common/rwsig.c @@ -255,7 +255,7 @@ void rwsig_continue(void) task_set_event(TASK_ID_RWSIG, TASK_EVENT_CONTINUE, 0); } -void rwsig_task(void) +void rwsig_task(void *u) { uint32_t evt; diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 80ae429d52..2f701e6bfc 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -1640,7 +1640,7 @@ static void pd_init_tasks(void) } #endif /* CONFIG_COMMON_RUNTIME */ -void pd_task(void) +void pd_task(void *u) { int head; int port = TASK_ID_TO_PD_PORT(task_get_current()); diff --git a/common/usb_pd_tcpc.c b/common/usb_pd_tcpc.c index 0c620f7207..99e3470e18 100644 --- a/common/usb_pd_tcpc.c +++ b/common/usb_pd_tcpc.c @@ -858,7 +858,7 @@ int tcpc_run(int port, int evt) } #ifndef CONFIG_USB_POWER_DELIVERY -void pd_task(void) +void pd_task(void *u) { int port = TASK_ID_TO_PD_PORT(task_get_current()); int timeout = 10*MSEC; |