]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: PAD: Pass struct device pointer to acpi_pad_notify()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 21 May 2026 14:06:05 +0000 (16:06 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 25 May 2026 14:43:51 +0000 (16:43 +0200)
commitcf700a6df5ce6505d7b21a0b39bb5b85a7c01f33
tree1a79911127363ca035684107d0cbdf3880f28c9d
parentdd32e1966f42417ffad9b64b3837a0bbb0c2d035
ACPI: PAD: Pass struct device pointer to acpi_pad_notify()

Use the struct device pointer to the dev member in the struct
platform_device object representing the platform device used for driver
binding as the last argument of acpi_dev_install_notify_handler() and
accordingly update acpi_pad_notify() to pass that pointer directly to
dev_name() when generating the netlink event.

Since the dev_name() value for an ACPI-enumerated platform device is the
same as the dev_name() value for the dev member of its ACPI companion
object, as per acpi_create_platform_device(), the above code modification
is not expected to cause functionality to change.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/1862521.VLH7GnMWUR@rafael.j.wysocki
drivers/acpi/acpi_pad.c