mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
Tidy util headers and make ec_commands.h not include other headers
In preparation for being able to copy ec_commands.h to u-boot, which is itself in preparation for u-boot picking it up from /usr/src/ec/ BUG=none TEST=make link, snow, bds Change-Id: If256434b6722ff0787ce21a8ed4c7035c28024a8 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/26451 Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
#ifndef __CROS_EC_COMMANDS_H
|
||||
#define __CROS_EC_COMMANDS_H
|
||||
|
||||
#include "common.h"
|
||||
|
||||
/* Protocol overview
|
||||
*
|
||||
* request: CMD [ P0 P1 P2 ... Pn S ]
|
||||
|
||||
@@ -10,10 +10,7 @@
|
||||
#include <sys/param.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "comm-host.h"
|
||||
#include "ec_commands.h"
|
||||
#include "system.h"
|
||||
|
||||
#define STR0(name) #name
|
||||
#define STR(name) STR0(name)
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
#ifndef COMM_HOST_H
|
||||
#define COMM_HOST_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "common.h"
|
||||
#include "ec_commands.h"
|
||||
|
||||
/* Perform initializations needed for subsequent requests
|
||||
*
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "comm-host.h"
|
||||
#include "ec_commands.h"
|
||||
|
||||
#define EC_I2C_ADDR 0x1e
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "comm-host.h"
|
||||
#include "ec_commands.h"
|
||||
|
||||
#define INITIAL_UDELAY 5 /* 5 us */
|
||||
#define MAXIMUM_UDELAY 10000 /* 10 ms */
|
||||
|
||||
@@ -12,11 +12,8 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "battery.h"
|
||||
#include "board.h"
|
||||
#include "comm-host.h"
|
||||
#include "ec_commands.h"
|
||||
#include "lightbar.h"
|
||||
#include "system.h"
|
||||
#include "vboot.h"
|
||||
|
||||
/* Handy tricks */
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
#include "comm-host.h"
|
||||
#include "lightbar.h"
|
||||
#include "ec_commands.h"
|
||||
|
||||
/* Handy tricks */
|
||||
#define BUILD_ASSERT(cond) ((void)sizeof(char[1 - 2*!(cond)]))
|
||||
|
||||
Reference in New Issue
Block a user