]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq/amd-pstate-ut: Drop SUCCESS and FAIL enums
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 14 Feb 2025 22:31:25 +0000 (16:31 -0600)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 6 Mar 2025 19:01:25 +0000 (13:01 -0600)
commita7875346c6891063b83cd59dc3bd23113e4debf5
tree8deaab3380c929e813d6b16c77073ab54a702963
parent66030cc1c533e26bb4dbe8a356090f24dd734801
cpufreq/amd-pstate-ut: Drop SUCCESS and FAIL enums

Enums are effectively used as a boolean and don't show
the return value of the failing call.

Instead of using enums switch to returning the actual return
code from the unit test.

Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Reviewed-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate-ut.c