]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: event: Redefine acpi_notifier_call_chain()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Mar 2026 12:59:17 +0000 (13:59 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Mar 2026 15:48:24 +0000 (16:48 +0100)
commit69652f32c9ac71e2b0c8ed407e13ad905e00e947
tree886939c84d1e960b4118030ed705c830be167364
parent97892d5f0690f588bbcf755efe922c72cd248639
ACPI: event: Redefine acpi_notifier_call_chain()

Notice that acpi_notifier_call_chain() only uses its device argument
to retrieve the pnp.device_class and pnp.bus_id values from there, so
it can be redefined to take pointers to those two strings as parameters
istead of a struct acpi_device pointer.

That allows all of its callers to pass a string literal as its first
argument, so they won't need to initialize pnp.device_class in
struct acpi_device objects operated by them any more, and its
signature becomes more similar to acpi_bus_generate_netlink_event()
then.

Update the code as per the above.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/2056097.PYKUYFuaPT@rafael.j.wysocki
drivers/acpi/ac.c
drivers/acpi/acpi_video.c
drivers/acpi/battery.c
drivers/acpi/event.c
include/acpi/acpi_bus.h