summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru M Stan <amstan@chromium.org>2015-03-05 16:48:23 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-06 08:48:39 +0000
commitd0ec94203fa0ae68f680f6b106a971a89dfbe78f (patch)
treee8a48fe4e0a84d13366516b14b68b833ba4a4f55
parent7cbc5a0186d8d5fc36e2f54a0a7020354c8e00d7 (diff)
downloadchrome-ec-d0ec94203fa0ae68f680f6b106a971a89dfbe78f.tar.gz
motion_sense: Add required header
include/motion_lid.h is generally included by board.c in the various boards. But include/motion_lid.h actually needs host_command.h defined or else including it in board.c will cause a confusing error. This probably doesn't show up on other platforms like samus and glimmer because they define a few custom commands in board.c, but veyron doesn't need that. motion_lid ought to just include it directly if it really needs it. BUG=None, see next commits in the series, they won't compile without this TEST=See series BRANCH=veyron Change-Id: I42e966d891dbbcca7df484b59c9d1bb35d1357bc Signed-off-by: Alexandru M Stan <amstan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/256696 Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
-rw-r--r--include/motion_lid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/motion_lid.h b/include/motion_lid.h
index 8ccf27191e..b005688bb7 100644
--- a/include/motion_lid.h
+++ b/include/motion_lid.h
@@ -8,6 +8,8 @@
#ifndef __CROS_EC_MOTION_LID_H
#define __CROS_EC_MOTION_LID_H
+#include "host_command.h"
+
/* Anything outside of lid angle range [-180, 180] should work. */
#define LID_ANGLE_UNRELIABLE 500