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

drm/radeon: 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-9-tzimmermann@suse.de

+2 -2
+1 -1
drivers/gpu/drm/radeon/atombios_encoders.c
··· 249 249 */ 250 250 if (bd->props.brightness == 0) 251 251 bd->props.brightness = RADEON_MAX_BL_LEVEL; 252 - bd->props.power = FB_BLANK_UNBLANK; 252 + bd->props.power = BACKLIGHT_POWER_ON; 253 253 backlight_update_status(bd); 254 254 255 255 DRM_INFO("radeon atom DIG backlight initialized\n");
+1 -1
drivers/gpu/drm/radeon/radeon_legacy_encoders.c
··· 450 450 } 451 451 452 452 bd->props.brightness = radeon_legacy_backlight_get_brightness(bd); 453 - bd->props.power = FB_BLANK_UNBLANK; 453 + bd->props.power = BACKLIGHT_POWER_ON; 454 454 backlight_update_status(bd); 455 455 456 456 DRM_INFO("radeon legacy LVDS backlight initialized\n");