From c5e0634054093529263367d926e115c0a332f8b0 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Wed, 3 Feb 2016 16:14:51 -0800 Subject: 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 Change-Id: Ie5748df3d9904d1e417adc38fee18f8cb3ce9750 Reviewed-on: https://chromium-review.googlesource.com/325840 Commit-Ready: Shawn N Tested-by: Shawn N Reviewed-by: Randall Spangler --- include/power_button.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/power_button.h') 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. -- cgit v1.2.1