]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: button: Pass ACPI handle to acpi_lid_evaluate_state()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Jun 2026 16:55:53 +0000 (18:55 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Jun 2026 17:17:49 +0000 (19:17 +0200)
commitc64db50c13719a38e0ea290f686aa9cf79dc0342
tree3a4287aadc9d39088208ff03ac9a6979e6f759d3
parentf8600e0d1ac60e6eac34bc9c7e8cf78f7a4c368f
ACPI: button: Pass ACPI handle to acpi_lid_evaluate_state()

Make it clear that acpi_lid_evaluate_state() only uses the ACPI handle
of the lid by changing its argument to acpi_handle and adjust its
callers accordingly.

Also save the ACPI handle of the lid, that later may be passed to
acpi_lid_evaluate_state(), in a static variable instead of saving a
pointer to the ACPI device object containing that handle.

No intentional functional impact.

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