aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2022-09-27 22:45:20 +0200
committerHans de Goede <[email protected]>2022-11-16 08:48:18 +0100
commit878a82c23469d6626b27b44ade4d8f9438de51ab (patch)
treee52d1ee76a9bb179bcc0f1734559274c25c398d5 /tools/perf/scripts/python/stackcollapse.py
parent19c8b5241425948daeb0f91fe7a07cf1a4b76239 (diff)
ACPI: battery: Pass battery hook pointer to hook callbacks
Right now, is impossible for battery hook callbacks to access instance-specific data, forcing most drivers to provide some sort of global state. This however is difficult for drivers which can be instantiated multiple times and/or are hotplug-capable. Pass a pointer to the battery hook to those callbacks for usage with container_of(). Signed-off-by: Armin Wolf <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions