summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2016-09-12 11:04:19 +0200
committerInki Dae <inki.dae@samsung.com>2016-09-22 03:30:04 -0700
commit3d8fa49a8604976bb1be2331bc00d261fd5868fb (patch)
tree9b03dc9fcae8b98fde6d4eadc9cd3e8b086ee946
parent68e3e85ff9645ede15a0cf8a3eaa3b80d0ac8248 (diff)
downloadlinux-exynos-3d8fa49a8604976bb1be2331bc00d261fd5868fb.tar.gz
linux-exynos-3d8fa49a8604976bb1be2331bc00d261fd5868fb.tar.bz2
linux-exynos-3d8fa49a8604976bb1be2331bc00d261fd5868fb.zip
drm/panel/s6e3ha2: merge interface setting commands
The patch merges interface setting commands into one function. Change-Id: Iedb8592413a9f2b1cf47ed1be9576e5afd694336 Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
-rw-r--r--drivers/gpu/drm/panel/panel-s6e3ha2.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/gpu/drm/panel/panel-s6e3ha2.c b/drivers/gpu/drm/panel/panel-s6e3ha2.c
index 0a804b5b1290..2bf064a43c57 100644
--- a/drivers/gpu/drm/panel/panel-s6e3ha2.c
+++ b/drivers/gpu/drm/panel/panel-s6e3ha2.c
@@ -733,13 +733,9 @@ static void s6e3ha2_test_key_off_fc(struct s6e3ha2 *ctx)
s6e3ha2_dcs_write_seq_static(ctx, LDI_PASSWD3, 0xa5, 0xa5);
}
-static void s6e3ha2_single_dsi_set1(struct s6e3ha2 *ctx)
+static void s6e3ha2_set_interface(struct s6e3ha2 *ctx)
{
s6e3ha2_dcs_write_seq_static(ctx, LDI_DISPCTL, 0x67);
-}
-
-static void s6e3ha2_single_dsi_set2(struct s6e3ha2 *ctx)
-{
s6e3ha2_dcs_write_seq_static(ctx, LDI_MICCTL, 0x09);
}
@@ -1056,9 +1052,7 @@ static void s6e3ha2_panel_init(struct s6e3ha2 *ctx)
usleep_range(5000, 6000);
s6e3ha2_test_key_on_f0(ctx);
- s6e3ha2_single_dsi_set1(ctx);
- s6e3ha2_single_dsi_set2(ctx);
-
+ s6e3ha2_set_interface(ctx);
s6e3ha2_test_key_on_fc(ctx);
s6e3ha2_freq_calibration(ctx);
s6e3ha2_test_key_off_fc(ctx);