summaryrefslogtreecommitdiff
path: root/common/i2c_master.c
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-01-05 15:07:02 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-06 23:06:10 +0000
commitf81747eab60e0c329fc930b05c0c1d1edbbe32a4 (patch)
tree8e7929daf4193aff7c0b94f17d0ef1b53ca153aa /common/i2c_master.c
parentf5cfb505dc2f0123fdc053c100ce634b89036f8c (diff)
downloadchrome-ec-f81747eab60e0c329fc930b05c0c1d1edbbe32a4.tar.gz
coil: remove battery code
This code uses coil terms we're removing, but we don't use it in platform/cr50. Remove the code instead of replacing the terms. BUG=b:175244613 TEST=make buildall -j Change-Id: I15ffb2617d2dd4bedb809eeff858dcf0f6c8cf25 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2613140 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'common/i2c_master.c')
-rw-r--r--common/i2c_master.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/common/i2c_master.c b/common/i2c_master.c
index 340c20bb7e..399303cc17 100644
--- a/common/i2c_master.c
+++ b/common/i2c_master.c
@@ -5,7 +5,6 @@
/* I2C cross-platform code for Chrome EC */
-#include "battery.h"
#include "clock.h"
#include "console.h"
#include "crc8.h"
@@ -959,14 +958,6 @@ static enum ec_status i2c_command_passthru(struct host_cmd_handler_args *args)
int ret, i;
int port_is_locked = 0;
-#ifdef CONFIG_BATTERY_CUT_OFF
- /*
- * Some batteries would wake up after cut-off if we talk to it.
- */
- if (battery_is_cut_off())
- return EC_RES_ACCESS_DENIED;
-#endif
-
i2c_port = get_i2c_port(params->port);
if (!i2c_port)
return EC_RES_INVALID_PARAM;