diff options
author | Gergo Koteles <soyer@irl.hu> | 2024-04-08 20:35:10 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2024-04-15 16:46:56 +0300 |
commit | ba95eb44676d68049490af617049a7bf68946527 (patch) | |
tree | dd58759c924dcf97d27da11f7a69a496256d1697 /include/linux/platform_profile.h | |
parent | c1ca23111a6a4c323234a1a1632cda1890a540a4 (diff) | |
download | linux-ba95eb44676d68049490af617049a7bf68946527.tar.xz |
ACPI: platform-profile: add platform_profile_cycle()
Some laptops have a key to switch platform profiles.
Add a platform_profile_cycle() function to cycle between the enabled
profiles.
Signed-off-by: Gergo Koteles <soyer@irl.hu>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/5a97deddf72aa5e764d881eb39a7ba35c01a903e.1712597199.git.soyer@irl.hu
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/linux/platform_profile.h')
-rw-r--r-- | include/linux/platform_profile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_profile.h b/include/linux/platform_profile.h index e5cbb6841f3a..f5492ed413f3 100644 --- a/include/linux/platform_profile.h +++ b/include/linux/platform_profile.h @@ -36,6 +36,7 @@ struct platform_profile_handler { int platform_profile_register(struct platform_profile_handler *pprof); int platform_profile_remove(void); +int platform_profile_cycle(void); void platform_profile_notify(void); #endif /*_PLATFORM_PROFILE_H_*/ |