]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: Adjust returns when power_profile_mode is not supported
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 1 Nov 2021 21:17:27 +0000 (16:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Nov 2021 16:22:07 +0000 (12:22 -0400)
commita9a2b352f56de0899834bd8ea63ffd84ac0a2407
tree391effb654c9fb88271e51daa196aed4a0b38811
parent63359d1b4409f0adca30a0059583e3081ac44313
drm/amd/pm: Adjust returns when power_profile_mode is not supported

This better aligns that the caller can make a mistake with the buffer
and -EINVAL should be returned, but if the hardware doesn't support
the feature it should be -EOPNOTSUPP.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c