aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
diff options
context:
space:
mode:
authorSunil Khatri <[email protected]>2024-09-30 12:12:01 +0000
committerAlex Deucher <[email protected]>2024-10-07 18:02:50 +0000
commit7feb4f3ad8befa0850a576adaa32d57962bf82e5 (patch)
tree6285622982e095990c8d62c512ee88caa4a37532 /drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
parentdrm/amdgpu: update the handle ptr in suspend (diff)
downloadkernel-7feb4f3ad8befa0850a576adaa32d57962bf82e5.tar.gz
kernel-7feb4f3ad8befa0850a576adaa32d57962bf82e5.zip
drm/amdgpu: update the handle ptr in resume
Update the *handle to amdgpu_ip_block ptr for all functions pointers of resume. Signed-off-by: Sunil Khatri <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_v8_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/dce_v8_0.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
index 9033e27f5768..d834d7b17a0d 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
@@ -2838,15 +2838,15 @@ static int dce_v8_0_suspend(struct amdgpu_ip_block *ip_block)
return dce_v8_0_hw_fini(adev);
}
-static int dce_v8_0_resume(void *handle)
+static int dce_v8_0_resume(struct amdgpu_ip_block *ip_block)
{
- struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+ struct amdgpu_device *adev = ip_block->adev;
int ret;
amdgpu_atombios_encoder_set_backlight_level_to_reg(adev,
adev->mode_info.bl_level);
- ret = dce_v8_0_hw_init(handle);
+ ret = dce_v8_0_hw_init(adev);
/* turn on the BL */
if (adev->mode_info.bl_encoder) {