mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
Include board and config headers in common.h
This ensures they get included everywhere, and fixes a common bug where we forget one of them and then code which is supposed to be BUG=none TEST=build the code Change-Id: Ic9208f946a3aea4b0b08f546f1919602befa76d4 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/26365
This commit is contained in:
@@ -18,6 +18,15 @@
|
||||
#define __packed __attribute__((packed))
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Include board and core configs, since those hold the CONFIG_ constants for a
|
||||
* given configuration. This guarantees they get included everywhere, and
|
||||
* fixes a fairly common bug where we gate out code with #ifndef
|
||||
* CONFIG_SOMETHING and but forget to include both of these.
|
||||
*/
|
||||
#include "board.h"
|
||||
#include "config.h"
|
||||
|
||||
/* List of common error codes that can be returned */
|
||||
enum ec_error_list {
|
||||
/* Success - no error */
|
||||
|
||||
Reference in New Issue
Block a user