platform/x86/amd/pmf: Remove smart_pc_status enum
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Fri, 16 Feb 2024 06:41:11 +0000 (12:11 +0530)
committerHans de Goede <hdegoede@redhat.com>
Mon, 19 Feb 2024 12:30:01 +0000 (13:30 +0100)
commit3da01394c0f727baaee728de290eb1ecaad099fb
tree03ac07b40260a2f8c190b100b2ce9eb25062c51e
parentf0ddb8a9021305e4e4e4179a2e47ecea6170d55d
platform/x86/amd/pmf: Remove smart_pc_status enum

Improve code readability by removing smart_pc_status enum, as the same
can be done with a simple true/false check; Update the code checks
accordingly.

Also add a missing return on amd_pmf_init_smart_pc() success,
to skip trying to setup the auto / slider modes which should
not be used in this case.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20240216064112.962582-1-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmf/core.c
drivers/platform/x86/amd/pmf/pmf.h
drivers/platform/x86/amd/pmf/tee-if.c