Skip to content

Commit ddda654

Browse files
committed
drm/amdgpu: Use backlight power constants
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 <[email protected]> Cc: Alex Deucher <[email protected]> Cc: "Christian König" <[email protected]> Cc: Xinhui Pan <[email protected]> Acked-by: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 5f5f657 commit ddda654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/atombios_encoders.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *amdgpu_encode
215215
dig->bl_dev = bd;
216216

217217
bd->props.brightness = amdgpu_atombios_encoder_get_backlight_brightness(bd);
218-
bd->props.power = FB_BLANK_UNBLANK;
218+
bd->props.power = BACKLIGHT_POWER_ON;
219219
backlight_update_status(bd);
220220

221221
DRM_INFO("amdgpu atom DIG backlight initialized\n");

0 commit comments

Comments
 (0)