diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2016-10-10 12:49:27 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-10-11 01:47:52 -0700 |
commit | bc34c98edd0e303617ce0dae7b283b18d290b0e7 (patch) | |
tree | 1e976119b4b276212df23d0a3cdd6ba0ed1e364a /driver/battery | |
parent | 7bfcb41d2cad36c220eee89576e41dacea870adb (diff) | |
download | chrome-ec-bc34c98edd0e303617ce0dae7b283b18d290b0e7.tar.gz |
smart_battery: Remove smart charger unreachable code
Smart battery code has I2C read/write code for smart chargers
which is an unreachable code for few boards hence removed it.
BUG=none
BRANCH=none
TEST=make buildall -j
Change-Id: I79933f61893c66447c686a81073c92f6a16e2d48
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/396279
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'driver/battery')
-rw-r--r-- | driver/battery/smart.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/driver/battery/smart.c b/driver/battery/smart.c index 9e7e9f3ec6..15dd72ff29 100644 --- a/driver/battery/smart.c +++ b/driver/battery/smart.c @@ -22,16 +22,6 @@ static int fake_state_of_charge = -1; -test_mockable int sbc_read(int cmd, int *param) -{ - return i2c_read16(I2C_PORT_CHARGER, CHARGER_ADDR, cmd, param); -} - -test_mockable int sbc_write(int cmd, int param) -{ - return i2c_write16(I2C_PORT_CHARGER, CHARGER_ADDR, cmd, param); -} - test_mockable int sb_read(int cmd, int *param) { #ifdef CONFIG_BATTERY_CUT_OFF |