summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic (Chun-Ju) Yang <victoryang@chromium.org>2013-11-28 12:05:44 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-12-02 04:54:12 +0000
commit8d2fc77326c598a4379e45b0946d0dba5d09617f (patch)
treefd90da1aa2e0aae99088cbb40c29bf693b0ac271
parent84db5c754944e3316cd13537c25656afc07603ea (diff)
downloadchrome-ec-8d2fc77326c598a4379e45b0946d0dba5d09617f.tar.gz
mec1322: remove the ugly DUMMY() macro in system.c
DUMMY() is ugly and DUMMY_int() makes repo complain. Replace them with explicit functions. BUG=chrome-os-partner:24107 TEST=Build mec1322_evb BRANCH=None Change-Id: I155b769c12cafaf432c7f53fd46806feada3cfca Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/178275 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--chip/mec1322/system.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/chip/mec1322/system.c b/chip/mec1322/system.c
index 09d3cd1b26..276803289b 100644
--- a/chip/mec1322/system.c
+++ b/chip/mec1322/system.c
@@ -17,12 +17,7 @@
#include "util.h"
-#define DUMMY(x) x {}
-#define DUMMY_int(x) x { return 0; }
-DUMMY(void system_hibernate(uint32_t seconds, uint32_t microseconds));
-DUMMY_int(int system_get_vbnvcontext(uint8_t *block));
-DUMMY_int(int system_set_vbnvcontext(const uint8_t *block));
void system_pre_init(void)
{
@@ -72,3 +67,18 @@ const char *system_get_chip_revision(void)
buf[2] = '\0';
return buf;
}
+
+int system_get_vbnvcontext(uint8_t *block)
+{
+ return EC_ERROR_UNIMPLEMENTED;
+}
+
+int system_set_vbnvcontext(const uint8_t *block)
+{
+ return EC_ERROR_UNIMPLEMENTED;
+}
+
+void system_hibernate(uint32_t seconds, uint32_t microseconds)
+{
+ /* TODO(crosbug.com/p/24107): Implement this */
+}