From ad12c158746ca46c2eb06947d707e442f2290bca Mon Sep 17 00:00:00 2001 From: Andrzej Hajda Date: Mon, 12 Sep 2016 11:23:07 +0200 Subject: [PATCH] drm/panel/s6e3ha2: merge POC setting commands The patch merges POC setting commands into one function. Change-Id: Ifbcc0921e9c4cc6da015460e700607e2cdba561a Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/panel/panel-s6e3ha2.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-s6e3ha2.c b/drivers/gpu/drm/panel/panel-s6e3ha2.c index 2bf064a..94fdb95 100644 --- a/drivers/gpu/drm/panel/panel-s6e3ha2.c +++ b/drivers/gpu/drm/panel/panel-s6e3ha2.c @@ -814,13 +814,9 @@ static void s6e3ha2_pentile_control(struct s6e3ha2 *ctx) 0x00, 0x00, 0xd8, 0xd8); } -static void s6e3ha2_poc_global(struct s6e3ha2 *ctx) -{ - s6e3ha2_dcs_write_seq_static(ctx, LDI_G_PARA, 0x20); -} - static void s6e3ha2_poc_setting(struct s6e3ha2 *ctx) { + s6e3ha2_dcs_write_seq_static(ctx, LDI_G_PARA, 0x20); s6e3ha2_dcs_write_seq_static(ctx, LDI_OSCCTL2, 0x08); } @@ -1189,7 +1185,6 @@ static int s6e3ha2_enable(struct drm_panel *panel) s6e3ha2_test_key_on_fc(ctx); s6e3ha2_touch_hsync_on1(ctx); s6e3ha2_pentile_control(ctx); - s6e3ha2_poc_global(ctx); s6e3ha2_poc_setting(ctx); s6e3ha2_test_key_off_fc(ctx); -- 2.7.4