drm/amdgpu: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 31 Jul 2024 12:17:13 +0000 (14:17 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 16 Aug 2024 07:27:15 +0000 (09:27 +0200)
Replace FB_BLANK_ constants with their counterparts from the
backlight subsystem. The values are identical, so there's no
change in functionality or semantics.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: Xinhui Pan <Xinhui.Pan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240731122311.1143153-2-tzimmermann@suse.de
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c

index 25feab1..650ec95 100644 (file)
@@ -215,7 +215,7 @@ void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *amdgpu_encode
        dig->bl_dev = bd;
 
        bd->props.brightness = amdgpu_atombios_encoder_get_backlight_brightness(bd);
-       bd->props.power = FB_BLANK_UNBLANK;
+       bd->props.power = BACKLIGHT_POWER_ON;
        backlight_update_status(bd);
 
        DRM_INFO("amdgpu atom DIG backlight initialized\n");