Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
··· 215 215 dig->bl_dev = bd; 216 216 217 217 bd->props.brightness = amdgpu_atombios_encoder_get_backlight_brightness(bd); 218 - bd->props.power = FB_BLANK_UNBLANK; 218 + bd->props.power = BACKLIGHT_POWER_ON; 219 219 backlight_update_status(bd); 220 220 221 221 DRM_INFO("amdgpu atom DIG backlight initialized\n");