summaryrefslogtreecommitdiff
path: root/include/power_button.h
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2016-02-03 16:14:51 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-02-03 21:34:47 -0800
commitc5e0634054093529263367d926e115c0a332f8b0 (patch)
treeefe0661f95e0e6da64620deb888fa4c96d5905da /include/power_button.h
parent086e501be397b3e14693b2dfd6a235dcc86844a0 (diff)
downloadchrome-ec-c5e0634054093529263367d926e115c0a332f8b0.tar.gz
cleanup: Fix signed vs unsigned typing
- ec_response_thermal_get_threshold.value is unsigned, so it can not be less than zero. - make power_button_wait_for_release() take a signed int, to match its existing usage. BUG=None TEST=`make buildall -j` BRANCH=None Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: Ie5748df3d9904d1e417adc38fee18f8cb3ce9750 Reviewed-on: https://chromium-review.googlesource.com/325840 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/power_button.h')
-rw-r--r--include/power_button.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/power_button.h b/include/power_button.h
index d996cbbdbb..3297c411eb 100644
--- a/include/power_button.h
+++ b/include/power_button.h
@@ -24,7 +24,7 @@ int power_button_is_pressed(void);
* @return EC_SUCCESS if ok, or
* EC_ERROR_TIMEOUT if power button failed to release
*/
-int power_button_wait_for_release(unsigned int timeout_us);
+int power_button_wait_for_release(int timeout_us);
/**
* Return non-zero if power button signal asserted at hardware input.