summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-04-08 10:03:35 -0700
committerChromeBot <chrome-bot@google.com>2013-04-09 10:13:10 -0700
commit95250857ad9575ea6391d6987cd368ef92e12e7e (patch)
tree1e29d2225f72c0744bcd2180109430494f8d2b8d
parent3e9d365e2ca9207407dbdd465f1b316de209e3fd (diff)
downloadchrome-ec-95250857ad9575ea6391d6987cd368ef92e12e7e.tar.gz
Fix mccroskey build
There's no chipset for mccroskey, so its keyboard code stopped compiling. BUG=chrome-os-partner:18343 BRANCH=none TEST=build mccroskey, spring, link Change-Id: If94dfaf2819f047a6aa825ee10aa1d320c8ca882 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/47566 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
-rw-r--r--include/chipset.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/chipset.h b/include/chipset.h
index e652ec23d8..d05eadec5a 100644
--- a/include/chipset.h
+++ b/include/chipset.h
@@ -34,6 +34,7 @@ enum chipset_state_mask {
CHIPSET_STATE_SOFT_OFF), /* Any off state */
};
+#ifdef CONFIG_TASK_CHIPSET
/**
* Check if chipset is in a given state.
*
@@ -43,6 +44,13 @@ enum chipset_state_mask {
* mask.
*/
int chipset_in_state(int state_mask);
+#else
+static inline int chipset_in_state(int state_mask)
+{
+ return 0;
+}
+#endif
+
/**
* Ask the chipset to exit the hard off state.