diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-08-27 17:02:48 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-10-03 13:46:22 +0300 |
commit | 05f94eb989075f6e5cd99d0772ea160efe41bff4 (patch) | |
tree | 6b1c20804ccdb80ee33e410e041714c481b79b2f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 41a7431dbaa37533c3b732cdea425a7b8f2d4162 (diff) | |
download | linux-05f94eb989075f6e5cd99d0772ea160efe41bff4.tar.xz |
power: supply: document current direction
Currently the sign for CURRENT_NOW and CURRENT_AVG is a bit
of a mess. There are basically 3 different ways battery fuel
gauges report the current:
1. uses negative values for discharging and positive values
for charging
2. uses positive values for discharging and negative values
for discharging (opposit of 1)
3. only uses positive values
As a result userspace currently cannot use the sign at all in
a generic way. Let's solve the issue by documenting a canonical
way for reporting the data and ensure new drivers follow this
way. Then existing drivers can be fixed on a case-by-case basis.
The 'negative value = battery discharging' has been choosen,
since there are only very few drivers doing it the other way
around.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions