aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-05-20 11:28:07 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-05-26 12:25:53 +0000
commitb2a4c27a2fa2348b5b9589a8e228cdd34feb459b (patch)
treee51b5f8c1970a31a771e8703e296882f30fb666b
parenta081583e3d1a0e4173a582ddafaeacff8b28b9c9 (diff)
option.h: Correct `get_uint_option` return type
Commit 88dcb3179b4b (src: Retype option API to use unsigned integers) changed the option API to use unsigned integers, but missed this. Change-Id: I5deb17157db41c40cc72078e2af9cf65bdbe0581 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/54726 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
-rw-r--r--src/include/option.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/option.h b/src/include/option.h
index 8316bd842c..74a6bbbfc2 100644
--- a/src/include/option.h
+++ b/src/include/option.h
@@ -18,7 +18,7 @@ static inline enum cb_err set_uint_option(const char *name, unsigned int value)
return CB_CMOS_OTABLE_DISABLED;
}
-static inline int get_uint_option(const char *name, const unsigned int fallback)
+static inline unsigned int get_uint_option(const char *name, const unsigned int fallback)
{
if (CONFIG(USE_OPTION_TABLE)) {
unsigned int value = 0;