Skip to content

Commit 34aa0a8

Browse files
author
Thomas Zimmermann
committed
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 <[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 649ae0e commit 34aa0a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/radeon/atombios_encoders.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder,
249249
*/
250250
if (bd->props.brightness == 0)
251251
bd->props.brightness = RADEON_MAX_BL_LEVEL;
252-
bd->props.power = FB_BLANK_UNBLANK;
252+
bd->props.power = BACKLIGHT_POWER_ON;
253253
backlight_update_status(bd);
254254

255255
DRM_INFO("radeon atom DIG backlight initialized\n");

drivers/gpu/drm/radeon/radeon_legacy_encoders.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ void radeon_legacy_backlight_init(struct radeon_encoder *radeon_encoder,
450450
}
451451

452452
bd->props.brightness = radeon_legacy_backlight_get_brightness(bd);
453-
bd->props.power = FB_BLANK_UNBLANK;
453+
bd->props.power = BACKLIGHT_POWER_ON;
454454
backlight_update_status(bd);
455455

456456
DRM_INFO("radeon legacy LVDS backlight initialized\n");

0 commit comments

Comments
 (0)