]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: platform_profile: Use guard(mutex) for register/unregister
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 6 Dec 2024 03:19:04 +0000 (21:19 -0600)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 10 Dec 2024 17:17:57 +0000 (19:17 +0200)
commit55b1e68134bfa041960282fdefef7f3e56add703
tree1b04b413980e6230189143fa7390583fd2cf9883
parentab431a20756a0e755c91a5df78c8c70e0fbecd80
ACPI: platform_profile: Use guard(mutex) for register/unregister

guard(mutex) can be used to automatically release mutexes when going
out of scope.

Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Tested-by: Matthew Schwartz <matthew.schwartz@linux.dev>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241206031918.1537-9-mario.limonciello@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/acpi/platform_profile.c