diff options
| author | Armin Wolf <[email protected]> | 2025-01-19 20:17:23 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2025-01-20 12:16:59 +0000 |
| commit | 3ef4ea516c2f8a2f1ff8ca59b156fb2e4472c2a4 (patch) | |
| tree | b5bfa534e8d1013bafb82f0af3fe4348641c3bf6 /drivers/soundwire/intel.c | |
| parent | platform/x86: acer-wmi: Ignore AC events (diff) | |
| download | kernel-3ef4ea516c2f8a2f1ff8ca59b156fb2e4472c2a4.tar.gz kernel-3ef4ea516c2f8a2f1ff8ca59b156fb2e4472c2a4.zip | |
platform/x86: acer-wmi: Fix initialization of last_non_turbo_profile
On machines that do not support the balanced profile the value of
last_non_turbo_profile is invalid after initialization which might
cause the driver to switch to an unsupported platform profile later.
Fix this by only setting last_non_turbo_profile to supported platform
profile values.
Fixes: 191e21f1a4c3 ("platform/x86: acer-wmi: use an ACPI bitmap to set the platform profile choices")
Signed-off-by: Armin Wolf <[email protected]>
Tested-by: Hridesh MG <[email protected]>
Reviewed-by: Hridesh MG <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/soundwire/intel.c')
0 files changed, 0 insertions, 0 deletions
