platform/x86: thinkpad_acpi: use lockdep annotations
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 4 Jul 2023 21:03:18 +0000 (23:03 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 12 Jul 2023 15:48:20 +0000 (17:48 +0200)
commit38831eaf7d4ca95c5052e1f6f0ac7cacd46d6fef
tree1526058eeaf845ce166115a54227a250bc6937dd
parentce55dbe55f31c54811e0685c56252eb75f38d31e
platform/x86: thinkpad_acpi: use lockdep annotations

Instead of relying on free-form comments to document locking
requirements use well-known lockdep annotations.
These can also be validated at runtime make sure the invariants are not
violated.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20230704-thinkpad_acpi-lockdep-v1-2-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