From 95250857ad9575ea6391d6987cd368ef92e12e7e Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Mon, 8 Apr 2013 10:03:35 -0700 Subject: 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 Reviewed-on: https://gerrit.chromium.org/gerrit/47566 Reviewed-by: Bill Richardson --- include/chipset.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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. -- cgit v1.2.1