]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: acer-wmi: simplify platform profile cycling
authorHridesh MG <hridesh699@gmail.com>
Mon, 13 Jan 2025 13:14:11 +0000 (18:44 +0530)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Jan 2025 14:27:34 +0000 (16:27 +0200)
commit61c461a90fbfc038d9663713f293d60fcb58c41d
treed5810a5070d0f90bd4e38b84c2802ba559ba643a
parentcd44e09bb89d4a33514b9ec3d972f0d2d13f5cfd
platform/x86: acer-wmi: simplify platform profile cycling

Make use of platform_profile_cycle() to simplify the logic used for
cycling through the different platform profiles. Also remove the
unnecessary handling for AC power, as the hardware accepts different
profiles regardless of whether AC is plugged in.

Link: https://lore.kernel.org/platform-driver-x86/20e3ac66-b040-49a9-ab00-0adcfdaed2ff@gmx.de/
Signed-off-by: Hridesh MG <hridesh699@gmail.com>
Reviewed-by: Kurt Borja <kuurtb@gmail.com>
Link: https://lore.kernel.org/r/20250113-platform_profile-v4-3-23be0dff19f1@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/acer-wmi.c