summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2023-03-18 01:57:01 +0300
committerSebastian Reichel <sre@kernel.org>2023-03-29 23:38:57 +0300
commit1b27bf793fd46219c882b8e545ec736cfadc0841 (patch)
tree3282e1fe0034354d6d6711fd8a97f52c447d4801 /tools/perf/scripts/python/export-to-postgresql.py
parent2f25b9750fa0d79090cadf6e7d0e3edba4fa58e3 (diff)
downloadlinux-1b27bf793fd46219c882b8e545ec736cfadc0841.tar.xz
power: supply: generic-adc-battery: use simple-battery API
Constant battery data is available through power-supply's simple-battery API. This works automatically, so the manual handling can be removed without loosing any feature :) Note, that the POWER_SUPPLY_STATUS_FULL check for the level variable can be dropped, since the variable is never written. It can be re-introduced properly once the driver gets functionality to calculate the current charge level. Apart from that the check must be done fuzzy anyways, since charge estimation usually is not precise enough to always return exactly the full charge capacity for a full battery. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions