diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-01-05 15:15:20 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-06 21:57:07 +0000 |
commit | cbdd34446ef0faf89ea5348701a14f77e0e1b947 (patch) | |
tree | 710090ed07afada8c54141d8612450c779b9b294 /include | |
parent | 5cbdb885f06ce87d7674c7edc3a7e33f3ba91b51 (diff) | |
download | chrome-ec-cbdd34446ef0faf89ea5348701a14f77e0e1b947.tar.gz |
coil: remove virtual_battery
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: I4b562b52817493afc123346280c845913be7694b
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2613141
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/virtual_battery.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/include/virtual_battery.h b/include/virtual_battery.h deleted file mode 100644 index 4e7ca31d05..0000000000 --- a/include/virtual_battery.h +++ /dev/null @@ -1,49 +0,0 @@ -/* Copyright 2016 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef __CROS_EC_VIRTUAL_BATTERY_H -#define __CROS_EC_VIRTUAL_BATTERY_H - -#if defined(CONFIG_I2C_VIRTUAL_BATTERY) && defined(CONFIG_BATTERY_SMART) -#define VIRTUAL_BATTERY_ADDR_FLAGS BATTERY_ADDR_FLAGS -#endif - -/** - * Read/write value of battery parameter from charge state. - * - * @param batt_cmd_head The beginning of the smart battery command - * @param dest Destination buffer for data - * @param read_len Number of bytes to read to the buffer - * @param write_len Number of bytes to write - * @return EC_SUCCESS if successful, non-zero if error. - * - */ -int virtual_battery_operation(const uint8_t *batt_cmd_head, - uint8_t *dest, - int read_len, - int write_len); - -/** - * Parse a command for virtual battery function. - * - * @param resp Pointer to the data structure to store the i2c messages - * @param in_len Accumulative number of bytes read - * @param err_code Pointer to the return value of i2c_xfer() or - * virtual_battery_operation() - * @param xferflags Flags - * @param read_len Number of bytes to read - * @param write_len Number of bytes to write - * @param out Data to send - * @return EC_SUCCESS if successful, non-zero if error. - */ -int virtual_battery_handler(struct ec_response_i2c_passthru *resp, - int in_len, int *err_code, int xferflags, - int read_len, int write_len, - const uint8_t *out); - -/* Reset the state machine and static variables. */ -void reset_parse_state(void); - -#endif /* __CROS_EC_VIRTUAL_BATTERY_H */ |