drm/amd/pm: fix get dpm level count for yello carp
authorJesse Zhang <jesse.zhang@amd.com>
Thu, 9 May 2024 09:33:20 +0000 (17:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2024 20:11:52 +0000 (16:11 -0400)
commitd1dd0802b3fc975c2277558d686d3519e3ccf952
tree9ef9151512b2f50d1fca118af0c8503d4ad9aae7
parent7cda0a90426e0d6448789d97760555ee9ed1750b
drm/amd/pm: fix get dpm level count for yello carp

For invalid clk types, return -EINVAL to check the return.

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c