drm/panel/s6e3ha2: merge POC setting commands 68/87968/3
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 12 Sep 2016 09:23:07 +0000 (11:23 +0200)
committerInki Dae <inki.dae@samsung.com>
Thu, 22 Sep 2016 10:30:20 +0000 (03:30 -0700)
The patch merges POC setting commands into one function.

Change-Id: Ifbcc0921e9c4cc6da015460e700607e2cdba561a
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/gpu/drm/panel/panel-s6e3ha2.c

index 2bf064a..94fdb95 100644 (file)
@@ -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);