drm/amd/display: Change dc_set_power_state() to bool instead of int
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 25 Sep 2023 17:57:47 +0000 (12:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 21:00:23 +0000 (17:00 -0400)
commit1ca965719b5bff60a7fcf489f38313ca237a7d77
tree01d1c28324943150c79b215ffc223fa6b923bc28
parentb2e1cbe6281feb880dbfbee47aa6defee4227cf0
drm/amd/display: Change dc_set_power_state() to bool instead of int

DC code is reused by other OSes and so Linux return codes don't
make sense.  Change dc_set_power_state() to boolean and add a wrapper
dm_set_power_state() to return a Linux error code for the memory
allocation failure.

Suggested-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h