Skip to content

Commit f366d88

Browse files
author
Thomas Zimmermann
committed
drm/panel: panel-orisetech-otm8009a: 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: Neil Armstrong <[email protected]> Cc: Jessica Zhang <[email protected]> Reviewed-by: Jessica Zhang <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b3a9018 commit f366d88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/panel/panel-orisetech-otm8009a.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static int otm8009a_backlight_update_status(struct backlight_device *bd)
389389
return -ENXIO;
390390
}
391391

392-
if (bd->props.power <= FB_BLANK_NORMAL) {
392+
if (bd->props.power <= BACKLIGHT_POWER_REDUCED) {
393393
/* Power on the backlight with the requested brightness
394394
* Note We can not use mipi_dsi_dcs_set_display_brightness()
395395
* as otm8009a driver support only 8-bit brightness (1 param).
@@ -465,7 +465,7 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi)
465465

466466
ctx->bl_dev->props.max_brightness = OTM8009A_BACKLIGHT_MAX;
467467
ctx->bl_dev->props.brightness = OTM8009A_BACKLIGHT_DEFAULT;
468-
ctx->bl_dev->props.power = FB_BLANK_POWERDOWN;
468+
ctx->bl_dev->props.power = BACKLIGHT_POWER_OFF;
469469
ctx->bl_dev->props.type = BACKLIGHT_RAW;
470470

471471
drm_panel_add(&ctx->panel);

0 commit comments

Comments
 (0)