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 /driver/bc12 | |
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 'driver/bc12')
-rw-r--r-- | driver/bc12/bq24392.c | 3 | ||||
-rw-r--r-- | driver/bc12/pi3usb9281.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/driver/bc12/bq24392.c b/driver/bc12/bq24392.c index ec7f71d4bf..adae6d61c6 100644 --- a/driver/bc12/bq24392.c +++ b/driver/bc12/bq24392.c @@ -115,8 +115,9 @@ static void detect_or_power_down_ic(const int port) power_down_ic(port); } -void usb_charger_task(const int port) +void usb_charger_task(void *u) { + const int port = (intptr_t)u; uint32_t evt; ASSERT(port >= 0 && port <= 2); diff --git a/driver/bc12/pi3usb9281.c b/driver/bc12/pi3usb9281.c index 4495b7065b..88f40778b8 100644 --- a/driver/bc12/pi3usb9281.c +++ b/driver/bc12/pi3usb9281.c @@ -388,7 +388,7 @@ static void bc12_detect(int port) } } -void usb_charger_task(void) +void usb_charger_task(void *u) { const int attach_mask = PI3USB9281_INT_ATTACH | PI3USB9281_INT_DETACH; int port = (task_get_current() == TASK_ID_USB_CHG_P0 ? 0 : 1); |