summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorHans de Goede <hansg@kernel.org>2025-06-08 22:40:09 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2025-06-22 02:08:44 +0200
commit2986e5b213cd84ac290ae68e73b7629ec8f184a6 (patch)
tree2d46ce337957be639b31ef32abc469bdf37471d3 /tools/perf/scripts/python/net_dropmonitor.py
parent8842bd00a74bf758fb1abf572ec1c7d70c09dedb (diff)
power: supply: ug3105_battery: Switch to power_supply_batinfo_ocv2cap()
Replace the hardcoded ocv -> capacity table and the ug3105_get_capacity() helper with using the generic power_supply_batinfo_ocv2cap() function. Note this relies on the battery fwnode providing at least 1 "ocv-capacity-table", if that is missing probe() will now fail with EINVAL. Signed-off-by: Hans de Goede <hansg@kernel.org> Link: https://lore.kernel.org/r/20250608204010.37482-10-hansg@kernel.org Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions