ACPI: button: Tweak acpi_button_remove()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 12 Feb 2026 13:33:00 +0000 (14:33 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Feb 2026 13:24:50 +0000 (14:24 +0100)
commit1abdf9e7967f154b3d4bfe0681dd38b8e036ee63
treefa99f5a902ff38785bd0a80fa841ee9c0d8cba5b
parentd323436b13f34b1df8261eb68989abda47e1785b
ACPI: button: Tweak acpi_button_remove()

Modify acpi_button_remove() to get the ACPI device object pointer
from button->adev instead of retrieving it with the help of the
ACPI_COMPANION() macro to reduce overhead slightly.

While at it, rename the struct acpi_device pointer variable in
acpi_button_remove() to adev.

No intentional functional impact.

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