summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMidas Chien <midaschieh@google.com>2022-09-19 11:03:17 +0800
committerMidas Chien <midaschieh@google.com>2022-09-19 11:03:58 +0800
commit433be03f38eb5f5f360c3cd7ac3a2d8b1797656e (patch)
tree8d88d35b4e7d72ef574bcb3a037ecf73fe103c38
parent81193df4b393aac1143e05d7a9844fab5a91f198 (diff)
downloadlynx-433be03f38eb5f5f360c3cd7ac3a2d8b1797656e.tar.gz
panel: s6e3fc3-l10: move LHBM check to common control
Bug: 243179526 Test: LHBM Signed-off-by: Midas Chien <midaschieh@google.com> Change-Id: I6fd4f51ad8ed3c30539e5ddab05174e547d734e4
-rw-r--r--display/panel-samsung-s6e3fc3-l10.c7
-rw-r--r--display/panel-samsung-s6e3fc5.c1
2 files changed, 0 insertions, 8 deletions
diff --git a/display/panel-samsung-s6e3fc3-l10.c b/display/panel-samsung-s6e3fc3-l10.c
index f0291e3..e554b1d 100644
--- a/display/panel-samsung-s6e3fc3-l10.c
+++ b/display/panel-samsung-s6e3fc3-l10.c
@@ -597,10 +597,6 @@ static void s6e3fc3_l10_set_dimming_on(struct exynos_panel *exynos_panel,
static void s6e3fc3_l10_set_local_hbm_mode(struct exynos_panel *exynos_panel,
bool local_hbm_en)
{
- if (exynos_panel->hbm.local_hbm.enabled == local_hbm_en)
- return;
-
- exynos_panel->hbm.local_hbm.enabled = local_hbm_en;
if (local_hbm_en) {
EXYNOS_DCS_WRITE_TABLE(exynos_panel, test_key_on_f0);
/* global para */
@@ -627,9 +623,6 @@ static void s6e3fc3_l10_set_local_hbm_mode(struct exynos_panel *exynos_panel,
static void s6e3fc3_l10_mode_set(struct exynos_panel *ctx,
const struct exynos_panel_mode *pmode)
{
- if (!ctx->enabled)
- return;
-
s6e3fc3_l10_change_frequency(ctx, drm_mode_vrefresh(&pmode->mode));
}
diff --git a/display/panel-samsung-s6e3fc5.c b/display/panel-samsung-s6e3fc5.c
index acbcd0a..e3c80e2 100644
--- a/display/panel-samsung-s6e3fc5.c
+++ b/display/panel-samsung-s6e3fc5.c
@@ -570,7 +570,6 @@ static void s6e3fc5_set_dimming_on(struct exynos_panel *exynos_panel,
static void s6e3fc5_set_local_hbm_mode(struct exynos_panel *exynos_panel,
bool local_hbm_en)
{
- exynos_panel->hbm.local_hbm.enabled = local_hbm_en;
s6e3fc5_update_wrctrld(exynos_panel);
}