Skip to content

Commit 21d6376

Browse files
author
Thomas Zimmermann
committed
drm/panel: panel-samsung-s6e63j0x03: 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 f366d88 commit 21d6376

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ static int s6e63j0x03_disable(struct drm_panel *panel)
225225
if (ret < 0)
226226
return ret;
227227

228-
ctx->bl_dev->props.power = FB_BLANK_NORMAL;
228+
ctx->bl_dev->props.power = BACKLIGHT_POWER_REDUCED;
229229

230230
ret = mipi_dsi_dcs_enter_sleep_mode(dsi);
231231
if (ret < 0)
@@ -245,7 +245,7 @@ static int s6e63j0x03_unprepare(struct drm_panel *panel)
245245
if (ret < 0)
246246
return ret;
247247

248-
ctx->bl_dev->props.power = FB_BLANK_POWERDOWN;
248+
ctx->bl_dev->props.power = BACKLIGHT_POWER_OFF;
249249

250250
return 0;
251251
}
@@ -332,7 +332,7 @@ static int s6e63j0x03_prepare(struct drm_panel *panel)
332332
if (ret < 0)
333333
goto err;
334334

335-
ctx->bl_dev->props.power = FB_BLANK_NORMAL;
335+
ctx->bl_dev->props.power = BACKLIGHT_POWER_REDUCED;
336336

337337
return 0;
338338

@@ -393,7 +393,7 @@ static int s6e63j0x03_enable(struct drm_panel *panel)
393393
if (ret < 0)
394394
return ret;
395395

396-
ctx->bl_dev->props.power = FB_BLANK_UNBLANK;
396+
ctx->bl_dev->props.power = BACKLIGHT_POWER_ON;
397397

398398
return 0;
399399
}
@@ -473,7 +473,7 @@ static int s6e63j0x03_probe(struct mipi_dsi_device *dsi)
473473

474474
ctx->bl_dev->props.max_brightness = MAX_BRIGHTNESS;
475475
ctx->bl_dev->props.brightness = DEFAULT_BRIGHTNESS;
476-
ctx->bl_dev->props.power = FB_BLANK_POWERDOWN;
476+
ctx->bl_dev->props.power = BACKLIGHT_POWER_OFF;
477477

478478
drm_panel_add(&ctx->panel);
479479

0 commit comments

Comments
 (0)