Commit 21d63768 authored by Thomas Zimmermann's avatar Thomas Zimmermann

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: default avatarThomas Zimmermann <tzimmermann@suse.de>
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Jessica Zhang <quic_jesszhan@quicinc.com>
Reviewed-by: default avatarJessica Zhang <quic_jesszhan@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240731122311.1143153-6-tzimmermann@suse.de
parent f366d880
...@@ -225,7 +225,7 @@ static int s6e63j0x03_disable(struct drm_panel *panel) ...@@ -225,7 +225,7 @@ static int s6e63j0x03_disable(struct drm_panel *panel)
if (ret < 0) if (ret < 0)
return ret; return ret;
ctx->bl_dev->props.power = FB_BLANK_NORMAL; ctx->bl_dev->props.power = BACKLIGHT_POWER_REDUCED;
ret = mipi_dsi_dcs_enter_sleep_mode(dsi); ret = mipi_dsi_dcs_enter_sleep_mode(dsi);
if (ret < 0) if (ret < 0)
...@@ -245,7 +245,7 @@ static int s6e63j0x03_unprepare(struct drm_panel *panel) ...@@ -245,7 +245,7 @@ static int s6e63j0x03_unprepare(struct drm_panel *panel)
if (ret < 0) if (ret < 0)
return ret; return ret;
ctx->bl_dev->props.power = FB_BLANK_POWERDOWN; ctx->bl_dev->props.power = BACKLIGHT_POWER_OFF;
return 0; return 0;
} }
...@@ -332,7 +332,7 @@ static int s6e63j0x03_prepare(struct drm_panel *panel) ...@@ -332,7 +332,7 @@ static int s6e63j0x03_prepare(struct drm_panel *panel)
if (ret < 0) if (ret < 0)
goto err; goto err;
ctx->bl_dev->props.power = FB_BLANK_NORMAL; ctx->bl_dev->props.power = BACKLIGHT_POWER_REDUCED;
return 0; return 0;
...@@ -393,7 +393,7 @@ static int s6e63j0x03_enable(struct drm_panel *panel) ...@@ -393,7 +393,7 @@ static int s6e63j0x03_enable(struct drm_panel *panel)
if (ret < 0) if (ret < 0)
return ret; return ret;
ctx->bl_dev->props.power = FB_BLANK_UNBLANK; ctx->bl_dev->props.power = BACKLIGHT_POWER_ON;
return 0; return 0;
} }
...@@ -473,7 +473,7 @@ static int s6e63j0x03_probe(struct mipi_dsi_device *dsi) ...@@ -473,7 +473,7 @@ static int s6e63j0x03_probe(struct mipi_dsi_device *dsi)
ctx->bl_dev->props.max_brightness = MAX_BRIGHTNESS; ctx->bl_dev->props.max_brightness = MAX_BRIGHTNESS;
ctx->bl_dev->props.brightness = DEFAULT_BRIGHTNESS; ctx->bl_dev->props.brightness = DEFAULT_BRIGHTNESS;
ctx->bl_dev->props.power = FB_BLANK_POWERDOWN; ctx->bl_dev->props.power = BACKLIGHT_POWER_OFF;
drm_panel_add(&ctx->panel); drm_panel_add(&ctx->panel);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment