OSDN Git Service

platform/x86: thinkpad_acpi: take mutex for hotkey_mask_{set,get}
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 4 Jul 2023 21:03:17 +0000 (23:03 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 12 Jul 2023 15:48:08 +0000 (17:48 +0200)
commitce55dbe55f31c54811e0685c56252eb75f38d31e
tree9919a0cc764bbf5d008d42f27ee8d21403e17fda
parente0b278e7b5da62c3ebb156a8b7d76a739da2d953
platform/x86: thinkpad_acpi: take mutex for hotkey_mask_{set,get}

hotkey_mask_set() and hotkey_mask_get() expect hotkey_mutex to be held.
While it should not matter during initialization a following patch will
enable lockdep for hotkey_mutex which would produce warnings here.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20230704-thinkpad_acpi-lockdep-v1-1-60129548a738@weissschuh.net
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c