diff options
author | Jack Wu <wjack@google.com> | 2023-01-30 21:50:03 +0800 |
---|---|---|
committer | Jack Wu <wjack@google.com> | 2023-01-30 21:52:43 +0800 |
commit | e990a54619390a0ee10452a469fb57c19bedc443 (patch) | |
tree | 717283f5cf6b05f08876e3309f27095cd94cf8a5 | |
parent | b38af3616c1ddc8c39e99ceaf619d1e7a79e485b (diff) | |
download | bms-e990a54619390a0ee10452a469fb57c19bedc443.tar.gz |
google_battery: fix reporting wrong health_algo
Bug: 255666926
Change-Id: I7e4f49a77c0271db831477c48091db4de5c856fa
Signed-off-by: Jack Wu <wjack@google.com>
-rw-r--r-- | google_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/google_battery.c b/google_battery.c index e1bfa5b..190ff67 100644 --- a/google_battery.c +++ b/google_battery.c @@ -6648,7 +6648,7 @@ static ssize_t health_algo_show(struct device *dev, struct power_supply *psy = container_of(dev, struct power_supply, dev); struct batt_drv *batt_drv = power_supply_get_drvdata(psy); - return scnprintf(buf, PAGE_SIZE, "%d\n", batt_drv->health_data.bhi_indi_cap); + return scnprintf(buf, PAGE_SIZE, "%d\n", batt_drv->health_data.bhi_algo); } static const DEVICE_ATTR_RW(health_algo); |