platform/x86: thinkpad_acpi: use platform_profile_cycle()
authorGergo Koteles <soyer@irl.hu>
Mon, 8 Apr 2024 17:35:12 +0000 (19:35 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 15 Apr 2024 13:48:35 +0000 (15:48 +0200)
commit4086c75d6febf595379c50d64729041f7a521e24
treec2f95473a6281a83cfb03f6aeae31484d246e5f1
parent822188bf55e1ae6f5c41272382b2aa5f206bc6ab
platform/x86: thinkpad_acpi: use platform_profile_cycle()

Some Thinkpads have a 'mode' button that switches between platform
profiles.

Use the new platform_module_cycle function instead of the existing
switch-based one.

Signed-off-by: Gergo Koteles <soyer@irl.hu>
Link: https://lore.kernel.org/r/eb2484f5356786578d820301b714335221524839.1712597199.git.soyer@irl.hu
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c