Armin Wolf 878a82c234 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 <W_Armin@gmx.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20220927204521.601887-2-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-11-16 08:48:18 +01:00
..
2022-05-27 21:24:19 -07:00
2022-10-10 09:10:28 -07:00
2022-10-03 20:09:22 +02:00
2022-04-05 10:24:38 +02:00
2022-10-05 10:38:24 -07:00
2020-11-09 19:25:20 +01:00
2022-05-25 15:37:07 +02:00
2022-10-05 10:38:24 -07:00
2022-01-22 08:33:37 +02:00
2022-10-03 13:19:53 -07:00
2022-09-30 20:05:16 +02:00
2020-11-09 19:08:06 +01:00
2022-10-03 20:09:22 +02:00
2022-09-09 09:26:22 +02:00
2020-11-09 19:08:06 +01:00