diff options
author | Hans de Goede <[email protected]> | 2017-12-26 13:59:12 +0100 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2018-01-09 17:45:08 +0100 |
commit | ceb40831c94115134581ee6eaaa26001e00def5f (patch) | |
tree | bdf2b7a99ef32c7d3cbd0393b2afad703f6b55cf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2b5a4b4bf2224f4f6b6631091bd51cb08d3094be (diff) |
power: supply: axp288_fuel_gauge: Optimize get_current()
First check the discharge current, and when that is non 0 use that without
also checking the charge current (which will be 0 then). This makes
get_current() do only 1 i2c read instead of 2 when on battery.
This is esp. important given the pmic i2c bus mutex stuff used on boards
with an axp288 because the SoC's own punit also may access the axp288,
which makes i2c accesses more expensive then normal.
Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Chen-Yu Tsai <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions